git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] reword the detached head message a little again

From
Nicolas Pitre <nico@cam.org>
Date
Feb 1, 2007, 17:30 UTC
Message-ID
<Pine.LNX.4.64.0702011229030.3021@xanadu.home>
Seems clearer this way, to me at least.
Signed-off-by: Nicolas Pitre <nico@cam.org>
---
 git-checkout.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-checkout.sh b/git-checkout.sh
index deb4795..97c26ad 100755
--- a/git-checkout.sh
+++ b/git-checkout.sh
@@ -155,7 +155,7 @@ then
 	detached="$new"
 	if test -n "$oldbranch"
 	then
-		detach_warn="Note: you are not on any branch and are at commit \"$new_name\"
+		detach_warn="Note: moving to \"$new_name\" which isn't a local branch
 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>"
-- 
1.5.0.rc2.131.g4b01-dirty
Message 1 of 1 in “reword the detached head message a little again”
  1. 1/3 reword the detached head message a little againNicolas Pitre, Feb 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.