Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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