path: root/
diff options
authorLinus Torvalds <>2005-09-19 17:11:18 (GMT)
committerJunio C Hamano <>2005-09-20 00:35:30 (GMT)
commit3b944aac3b88773d1fae4352706915aad21f3757 (patch)
tree13d87a56fc1c817a467b45f0ed6fc2ee2e9701d9 /
parentef34af24dc457f7a3ccfd8047e3d21e07f3f55e4 (diff)
[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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to '')
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index e02c7af..37afcdd 100755
--- 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