User: Password:
Subscribe / Log in / New account

Remove total confusion from "git checkout"

From:  Linus Torvalds <>
To:  Junio C Hamano <>, Git Mailing List <>
Subject:  Remove total confusion from "git checkout"
Date:  Mon, 19 Sep 2005 10:11:18 -0700 (PDT)
Archive-link:  Article, Thread

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 

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 <>
diff --git a/ b/
--- a/
+++ b/
@@ -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

(Log in to post comments)

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds