chiark / gitweb /
revid - make more suitable for us
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Mar 2012 11:26:58 +0000 (11:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Mar 2012 11:26:58 +0000 (11:26 +0000)
.git-revid

index 74037ae..9017e04 100755 (executable)
@@ -5,7 +5,8 @@ set -o pipefail
 kind="$1"
 
 desc=`git-describe --always HEAD`
-log=`git-log -1 --pretty='format:%h %ci %s' HEAD`
+log=`git-log -1 --pretty='format:%h' HEAD`
+date=`date --iso-8601=minutes`
 set +e
 git-diff --quiet HEAD
 diffrc=$?
@@ -30,7 +31,7 @@ C)    echo '#include "../.git-revid-autoversion.h"'
        ;;
 esac
 
-printf "%${maxlen}s" "$desc$diffplus $log"
+printf "%${maxlen}s" "$log $desc$diffplus $date"
 
 case "$kind" in
 '')    printf '\n' ;;