commit: 7ebb02b77f467b5f29012e6ea8d4dc6b183daaa3 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Wed Aug 23 17:12:22 2017 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun Oct 8 15:50:03 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=7ebb02b7
vc: Use UTC in order to prevent flapping of date. vc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vc b/vc index 4e13d71..4ad591e 100644 --- a/vc +++ b/vc @@ -17,7 +17,7 @@ while [ -n "$(echo $1 | grep '-')" ]; do done # English locale. LC_ALL=C -git --no-pager log -1 HEAD --pretty=format:"Hash: %H%nAbr. Hash: %h%nParent Hashes: %P%nAbr. Parent Hashes: %p%nAuthor Name: %an%nAuthor Email: %ae%nAuthor Date: %ai%nCommitter Name: %cn%nCommitter Email: %ce%nCommitter Date: %ci%n" |gawk -v script=log -v full=$full -f vc-git.awk > vc.tex +TZ=UTC git --no-pager log -1 HEAD --pretty=format:"Hash: %H%nAbr. Hash: %h%nParent Hashes: %P%nAbr. Parent Hashes: %p%nAuthor Name: %an%nAuthor Email: %ae%nAuthor Date: %ad%nCommitter Name: %cn%nCommitter Email: %ce%nCommitter Date: %cd%n" --date=iso-local | gawk -v script=log -v full=$full -f vc-git.awk > vc.tex if [ "$mod" = 1 ] then git status --porcelain |gawk -v script=status -f vc-git.awk >> vc.tex