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

[PATCH] Be consistent in naming of remote heads

From
KSKris Shannon <kris.shannon@gmail.com>
Date
Aug 17, 2005, 03:02 UTC
Message-ID
<bf38a9f050816200274e28f31@mail.gmail.com>

The _remote_name variable used for messages does not need the refs/heads/ prefix included.

Signed-off-by: Kris Shannon <kris.shannon@gmail.com>
---
 git-parse-remote |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
9e7a4358b1792be188df87debf564e46acdb39d4
diff --git a/git-parse-remote b/git-parse-remote
--- a/git-parse-remote
+++ b/git-parse-remote
@@ -71,8 +71,8 @@ tag)
 	'')
 		_remote_head=HEAD ;;
 	*)
-		_remote_head="refs/heads/$_remote_head"
 		_remote_name="head '$_remote_head' of $_remote_name"
+		_remote_head="refs/heads/$_remote_head"
 		;;
 	esac
 	;;
Message 1 of 1 in “Be consistent in naming of remote heads”
  1. Be consistent in naming of remote headsKris Shannon, Aug 17, 2005

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.