提交 216b2f1f 编写于 作者: U Uwe Zeisberger 提交者: 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: NUwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
Acked-by: NRyan Anderson <ryan@michonline.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 29b0c899
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册