mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 14:40:46 +01:00
Adding date of the last commit
This commit is contained in:
parent
4e1ffdd17c
commit
6f8b771a37
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Display the SHA1 of the commit in which configure.ac was last modified.
|
# Display the SHA1 of the commit in which configure.ac was last modified.
|
||||||
# If it's not checked in yet, use the SHA1 of HEAD plus -dirty.
|
# If it's not checked in yet, use the SHA1 of HEAD plus -dirty.
|
||||||
@ -13,7 +11,9 @@ elif git diff --quiet HEAD -- configure.ac ; then
|
|||||||
# configure.ac is not modified
|
# configure.ac is not modified
|
||||||
printf 'commit: %s\n' `git rev-parse --short HEAD -- configure.ac`
|
printf 'commit: %s\n' `git rev-parse --short HEAD -- configure.ac`
|
||||||
printf 'branch: %s\n' `git rev-parse --abbrev-ref HEAD`
|
printf 'branch: %s\n' `git rev-parse --abbrev-ref HEAD`
|
||||||
|
printf 'date : %s\n' `git log -1 --date=short --pretty=format:%cd`
|
||||||
else # configure.ac is modified
|
else # configure.ac is modified
|
||||||
printf 'commit: %s-dirty\n' `git rev-parse --short HEAD`
|
printf 'commit: %s-dirty\n' `git rev-parse --short HEAD`
|
||||||
printf 'branch: %s\n' `git rev-parse --abbrev-ref HEAD`
|
printf 'branch: %s\n' `git rev-parse --abbrev-ref HEAD`
|
||||||
|
printf 'date : %s\n' `git log -1 --date=short --pretty=format:%cd`
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user