提交 980d8ce5 编写于 作者: J Junio C Hamano

[PATCH] checkout: show dirty state upon switching branches.

This shows your working file state when you switch branches.  As
a side effect, "git checkout" without any branch name (i.e. stay
on the current branch) becomes a more concise shorthand for the
"git status" command.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 9e9b2675
......@@ -164,6 +164,9 @@ else
esac
exit 0
)
saved_err=$?
git diff-files --name-status
(exit $saved_err)
fi
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册