Commit 216b2f1f authored by Uwe Zeisberger's avatar Uwe Zeisberger Committed by Sam Ravnborg

kbuild: append -dirty for updated but uncommited changes

Compare the working copy with the last commit, instead of the index.
Signed-off-by: default avatarUwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Acked-by: default avatarRyan Anderson <ryan@michonline.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 29b0c899
...@@ -16,7 +16,7 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then ...@@ -16,7 +16,7 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then
fi fi
# Are there uncommitted changes? # Are there uncommitted changes?
if git diff-files | read dummy; then if git diff-index HEAD | read dummy; then
printf '%s' -dirty printf '%s' -dirty
fi fi
fi fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment