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

[PATCH QGit] Print HEAD instead of Head for the current branch in the status line

From
Markus Heidelberg <markus.heidelberg@web.de>
Date
Jun 12, 2009, 12:07 UTC
Message-ID
<1244808481-13012-3-git-send-email-markus.heidelberg@web.de>

HEAD is the correct identifier for the currently checked out branch in git terminology.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 src/git.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/git.cpp b/src/git.cpp
index 357383d..a20bf0d 100644
--- a/src/git.cpp
+++ b/src/git.cpp
@@ -594,7 +594,7 @@ const QString Git::getRevInfo(SCRef sha) {
 
 	QString refsInfo;
 	if (type & BRANCH) {
-		const QString cap(type & CUR_BRANCH ? "Head: " : "Branch: ");
+		const QString cap(type & CUR_BRANCH ? "HEAD: " : "Branch: ");
 		refsInfo =  cap + getRefName(sha, BRANCH).join(" ");
 	}
 	if (type & RMT_BRANCH)
-- 
1.6.3.2.236.ge505d
Message 1 of 1 in “Print HEAD instead of Head for the current branch in the status line”
  1. Print HEAD instead of Head for the current branch in the status lineMarkus Heidelberg, Jun 12, 2009

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.