[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>
Junio C Hamano committed
Jan 14, 2006 at 12:31 UTC
980d8ce551784b76e05077946b8a4f2ac6c5305d
1 file changed
+3
git-checkout.sh
+3
@@ -164,6 +164,9 @@ else
164
esac
165
exit 0
166
)
167
+ saved_err=$?
168
+ git diff-files --name-status
169
+ (exit $saved_err)
170
fi
171
172
#