{"thread":{"id":"6083","subject":"[PATCH] make the message about the need for a new branch a bit clearer","startedAt":"2006-12-22T20:06:54Z","lastAt":"2006-12-22T20:06:54Z","messageCount":1,"participants":["Nicolas Pitre"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"30087","messageId":"Pine.LNX.4.64.0612221502360.18171@xanadu.home","threadId":"6083","inReplyTo":null,"subject":"[PATCH] make the message about the need for a new branch a bit clearer","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2006-12-22T20:06:54Z","receivedAt":"2006-12-22T20:06:54Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"Signed-off-by: Nicolas Pitre <nico@cam.org>\n---\n\ndiff --git a/git-checkout.sh b/git-checkout.sh\nindex c877440..923d81c 100755\n--- a/git-checkout.sh\n+++ b/git-checkout.sh\n@@ -146,8 +146,11 @@ fi\n \n [ -z \"$branch$newbranch\" ] &&\n \t[ \"$new\" != \"$old\" ] &&\n-\tdie \"git checkout: to checkout the requested commit you need to specify \n-              a name for a new branch which is created and switched to\"\n+\tdie \"git checkout: provided reference cannot be checked out directly\n+\n+  You need -b to associate a new branch with the wanted checkout. Example:\n+  git checkout -b <new_branch_name> $arg\n+\"\n \n if [ \"X$old\" = X ]\n then\n"}]}