mirror of
https://github.com/torvalds/linux.git
synced 2026-10-01 23:56:51 -04:00
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 <[email protected]> Acked-by: Ryan Anderson <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
This commit is contained in:
committed by
Sam Ravnborg
parent
29b0c89953
commit
216b2f1f71
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user