Mercurial > hg > octave-kai > gnulib-hg
changeset 13220:2bc85bc8ca3a
git-version-gen: use "git update-index..." rather than "git status"
* build-aux/git-version-gen: Use git update-index --refresh, not
"git status". With some versions of git, "git status" would fail
to update the index and result in an unwarranted "-dirty" suffix.
author | Andreas Gruenbacher <agruen@suse.de> |
---|---|
date | Mon, 12 Apr 2010 17:56:27 +0200 |
parents | 41881f944956 |
children | 6b5e6ecef4f5 |
files | ChangeLog build-aux/git-version-gen |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-12 Andreas Gruenbacher <agruen@suse.de> + + git-version-gen: use "git update-index..." rather than "git status" + * build-aux/git-version-gen: Use git update-index --refresh, not + "git status". With some versions of git, "git status" would fail + to update the index and result in an unwarranted "-dirty" suffix. + 2010-04-11 Jim Meyering <meyering@redhat.com> openat: correct formatting (no semantic change)
--- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -127,7 +127,7 @@ v=`echo "$v" |sed 's/^v//'` # Don't declare a version "dirty" merely because a time stamp has changed. -git status > /dev/null 2>&1 +git update-index --refresh > /dev/null 2>&1 dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty= case "$dirty" in