提交 3b944aac 编写于 作者: L Linus Torvalds 提交者: Junio C Hamano

[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: NLinus Torvalds <torvalds@osdl.org>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 ef34af24
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册