summaryrefslogtreecommitdiffstats
path: root/scripts/setlocalversion
diff options
context:
space:
mode:
authorUwe Zeisberger <zeisberg@informatik.uni-freiburg.de>2006-06-16 08:48:48 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-17 00:08:17 +0200
commit216b2f1f718d653795024a085636d063693dd9a9 (patch)
tree6bf642676b0341c0b55f051692913efd9c88d0e7 /scripts/setlocalversion
parentkbuild: append git revision for all untagged commits (diff)
downloadlinux-216b2f1f718d653795024a085636d063693dd9a9.tar.xz
linux-216b2f1f718d653795024a085636d063693dd9a9.zip
kbuild: append -dirty for updated but uncommited changes
Compare the working copy with the last commit, instead of the index. Signed-off-by: Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de> Acked-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/setlocalversion')
-rw-r--r--scripts/setlocalversion2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index b7bc0f5b64f6..82e4993f0a73 100644
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -16,7 +16,7 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then
fi
# Are there uncommitted changes?
- if git diff-files | read dummy; then
+ if git diff-index HEAD | read dummy; then
printf '%s' -dirty
fi
fi