Skip to content

Commit

Permalink
kbuild: append -dirty for updated but uncommited changes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Zeisberger authored and Sam Ravnborg committed Jun 16, 2006
1 parent 29b0c89 commit 216b2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 216b2f1

Please sign in to comment.