Skip to content

Commit

Permalink
[PATCH] checkout: show dirty state upon switching branches.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 14, 2006
1 parent 9e9b267 commit 980d8ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ else
esac
exit 0
)
saved_err=$?
git diff-files --name-status
(exit $saved_err)
fi

#
Expand Down

0 comments on commit 980d8ce

Please sign in to comment.