[PATCH] Remove total confusion from "git checkout"
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>
Linus Torvalds committed
Sep 19, 2005 at 10:11 UTC
3b944aac3b88773d1fae4352706915aad21f3757
1 file changed
+1
-1
git-checkout.sh
+1
-1
@@ -23,7 +23,7 @@ while [ "$#" != "0" ]; do
23
;;
24
*)
25
rev=$(git-rev-parse --verify "$arg^0" 2>/dev/null) ||
26
- die "hey dummy, branch '$arg' doesn't exist."
26
+ die "I don't know any '$arg'."
27
if [ -z "$rev" ]; then
28
echo "unknown flag $arg"
29
exit 1