Revision 3df61d16c51c6cbbe49ca3faabd2215e6061887f authored by Alexander Kruppa on 20 February 2014, 16:47:44 UTC, committed by Alexander Kruppa on 20 February 2014, 16:47:44 UTC
1 parent 744a265
version.sh
#!/bin/sh
# This displays as much information as might be relevant. A trailing +
# indicates that local modifications exist.
cd "`dirname $0`"
commit="`git show --pretty=format:%h 2>/dev/null | head -1`"
if [ "$commit" != "" ] ; then
# git diff --name-status is svn status -q
# Note that checked out copies which have GIT_DIR set for
# some reason could end up triggering errors on git diff
if [ "`git diff --name-status 2>/dev/null`" != "" ] ; then
echo "${commit}+"
else
echo $commit
fi
else
head -1 ../.git_version
fi
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...