diff options
author | Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de> | 2006-06-16 02:48:48 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-16 18:08:17 -0400 |
commit | 216b2f1f718d653795024a085636d063693dd9a9 (patch) | |
tree | 6bf642676b0341c0b55f051692913efd9c88d0e7 /scripts | |
parent | 29b0c89953fee8597b4a9cbdd763c294ae0eb4c7 (diff) |
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')
-rw-r--r-- | scripts/setlocalversion | 2 |
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 | |||
16 | fi | 16 | fi |
17 | 17 | ||
18 | # Are there uncommitted changes? | 18 | # Are there uncommitted changes? |
19 | if git diff-files | read dummy; then | 19 | if git diff-index HEAD | read dummy; then |
20 | printf '%s' -dirty | 20 | printf '%s' -dirty |
21 | fi | 21 | fi |
22 | fi | 22 | fi |