diff options
author | Nicolas Pitre <nico@cam.org> | 2007-01-31 14:10:37 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-31 13:09:57 -0800 |
commit | d117452a801af081ebaf2c516e2d715eacf37601 (patch) | |
tree | fc326ce27dfecd28229d6b081345ce421a172c44 /git-checkout.sh | |
parent | 63460f285ce2330b0a5fc926961c3ca444ed7eb2 (diff) | |
download | git-d117452a801af081ebaf2c516e2d715eacf37601.tar.gz |
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>
Diffstat (limited to 'git-checkout.sh')
-rwxr-xr-x | git-checkout.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-checkout.sh b/git-checkout.sh index 8500f51ea2..0bae86e325 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -155,9 +155,9 @@ then detached="$new" if test -n "$oldbranch" then - detach_warn="warning: you are not on ANY branch anymore. -If you meant to create a new branch from this checkout, you may still do -so (now or later) by using -b with the checkout command again. Example: + detach_warn="Note: you are not on ANY branch anymore. +If you want to create a new branch from this checkout, you may do so +(now or later) by using -b with the checkout command again. Example: git checkout -b <new_branch_name>" fi elif test -z "$oldbranch" && test -n "$branch" |