summaryrefslogtreecommitdiff
path: root/scripts/setlocalversion
diff options
context:
space:
mode:
authorUwe Zeisberger <zeisberg@informatik.uni-freiburg.de>2006-06-16 10:48:48 +0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-17 02:08:17 +0400
commit216b2f1f718d653795024a085636d063693dd9a9 (patch)
tree6bf642676b0341c0b55f051692913efd9c88d0e7 /scripts/setlocalversion
parent29b0c89953fee8597b4a9cbdd763c294ae0eb4c7 (diff)
downloadlinux-216b2f1f718d653795024a085636d063693dd9a9.tar.xz
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