projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e9b267
)
[PATCH] checkout: show dirty state upon switching branches.
author
Junio C Hamano
<junkio@cox.net>
Sat, 14 Jan 2006 20:31:18 +0000
(12:31 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 14 Jan 2006 21:18:28 +0000
(13:18 -0800)
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>
git-checkout.sh
patch
|
blob
|
history
diff --git
a/git-checkout.sh
b/git-checkout.sh
index
bd7f007
..
d99688f
100755
(executable)
--- a/
git-checkout.sh
+++ b/
git-checkout.sh
@@
-164,6
+164,9
@@
else
esac
exit 0
)
+ saved_err=$?
+ git diff-files --name-status
+ (exit $saved_err)
fi
#