[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: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
9e9b26751a
commit
980d8ce551
@ -164,6 +164,9 @@ else
|
|||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
)
|
)
|
||||||
|
saved_err=$?
|
||||||
|
git diff-files --name-status
|
||||||
|
(exit $saved_err)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user