From: Linus Torvalds Date: Mon, 19 Sep 2005 17:11:18 +0000 (-0700) Subject: [PATCH] Remove total confusion from "git checkout" X-Git-Tag: v0.99.7a~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3b944aac3b88773d1fae4352706915aad21f3757?ds=inline;hp=--cc [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 --- 3b944aac3b88773d1fae4352706915aad21f3757 diff --git a/git-checkout.sh b/git-checkout.sh index e02c7afbae..37afcdda30 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -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