blob: 23b216aa2b0c849fa3fbeebf1b52fe733b966269 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
#
# Usage: get-scala-revision [dir]
# Figures out current scala revision of a git clone.
#
# If no dir is given, current working dir is used.
[[ -n "$1" ]] && cd "$1"
# dev should be a tag at the merge-base of master and the
# most recent release.
git describe head --abbrev=7 --match dev
|