Add a function to spit out latest git hash

This commit is contained in:
T. Joseph Carter 2015-02-14 04:53:05 -08:00
parent 7ea3faaeb6
commit 84e8a9294a

View File

@ -26,3 +26,9 @@ fetch_git() {
fi
}
# revision_git <local directory>
# Output the hash of the last commit in a git repository
revision_git() {
git -C "$WORKDIR/$1" log -n 1 --pretty=format:%H
}