@matheusbsbs / matheus-bagliano / commits / d117452a80
Fork 0

tone down the detached head warning

This is not meant to frighten people or even to suggest they might be doing something wrong, but rather to notify them of a state change and provide a likely option in the case this state was entered by mistake. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Nicolas Pitre committed Jan 31, 2007 at 14:10 UTC d117452a801af081ebaf2c516e2d715eacf37601
1 file changed +3 -3
git-checkout.sh
+3 -3
@@ -155,9 +155,9 @@ then
155 detached="$new"
156 if test -n "$oldbranch"
157 then
158 - detach_warn="warning: you are not on ANY branch anymore.
159 -If you meant to create a new branch from this checkout, you may still do
160 -so (now or later) by using -b with the checkout command again. Example:
158 + detach_warn="Note: you are not on ANY branch anymore.
159 +If you want to create a new branch from this checkout, you may do so
160 +(now or later) by using -b with the checkout command again. Example:
161 git checkout -b <new_branch_name>"
162 fi
163 elif test -z "$oldbranch" && test -n "$branch"