Skip to content

Commit

Permalink
[PATCH] Remove total confusion from "git checkout"
Browse files Browse the repository at this point in the history
The target to check out does not need to be a branch. The _result_ of the
checkout needs to be a branch. Don't confuse the two, and then insult the
user.

Insulting is ok, but I personally get really pissed off is a tool is both
confused and insulting. At least be _correct_ and insulting.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed Sep 20, 2005
1 parent ef34af2 commit 3b944aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ while [ "$#" != "0" ]; do
;;
*)
rev=$(git-rev-parse --verify "$arg^0" 2>/dev/null) ||
die "hey dummy, branch '$arg' doesn't exist."
die "I don't know any '$arg'."
if [ -z "$rev" ]; then
echo "unknown flag $arg"
exit 1
Expand Down

0 comments on commit 3b944aa

Please sign in to comment.