{"thread":{"id":"1861","subject":"Remove total confusion from \"git checkout\"","startedAt":"2005-09-19T17:11:18Z","lastAt":"2005-09-19T17:11:18Z","messageCount":1,"participants":["Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"8885","messageId":"Pine.LNX.4.58.0509191009041.9106@g5.osdl.org","threadId":"1861","inReplyTo":null,"subject":"Remove total confusion from \"git checkout\"","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-09-19T17:11:18Z","receivedAt":"2005-09-19T17:11:18Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\nThe target to check out does not need to be a branch. The _result_ of the \ncheckout needs to be a branch. Don't confuse the two, and then insult the \nuser.\n\nInsulting is ok, but I personally get really pissed off is a tool is both \nconfused and insulting. At least be _correct_ and insulting.\n\nSigned-off-by: Linus Torvalds <torvalds@osdl.org>\n---\ndiff --git a/git-checkout.sh b/git-checkout.sh\n--- a/git-checkout.sh\n+++ b/git-checkout.sh\n@@ -23,7 +23,7 @@ while [ \"$#\" != \"0\" ]; do\n \t\t;;\n \t*)\n \t\trev=$(git-rev-parse --verify \"$arg^0\" 2>/dev/null) ||\n-\t\t\tdie \"hey dummy, branch '$arg' doesn't exist.\"\n+\t\t\tdie \"I don't know any '$arg'.\"\n \t\tif [ -z \"$rev\" ]; then\n \t\t\techo \"unknown flag $arg\"\n \t\t\texit 1\n"}]}