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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Markus Heidelberg <markus.heidelberg@xxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]