#!/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