* 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-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)
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