fix suggested branch creation command when detaching head
authorNicolas Pitre <nico@cam.org>
Fri, 26 Jan 2007 16:50:06 +0000 (11:50 -0500)
committerJunio C Hamano <junkio@cox.net>
Sat, 27 Jan 2007 06:38:00 +0000 (22:38 -0800)
commiteb3204dfbb71626f83a95d2ab24569226a39c601
tree29d65823a341fcc98be6974e37d3dccce34179e0
parentd848804a895254583095b5c23ebb5d5f5a8891a3
fix suggested branch creation command when detaching head

Doing:

$ git checkout HEAD^

Generates the following message:

|warning: you are not on ANY branch anymore.
|If you meant to create a new branch from the commit, you need -b to
|associate a new branch with the wanted checkout.  Example:
|  git checkout -b <new_branch_name> HEAD^

Of course if the user does as told at this point the created branch
won't be located at the expected commit.  Reword this message a bit to
avoid such confusion.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout.sh