DORMANTno replies

[patch] color of branches in git status -sb

From: Nicolas Dudebout <hidden>
Date: 2016-06-15 22:52:29
Subsystem: documentation, the rest · Maintainers: Jonathan Corbet, Linus Torvalds

The following patch fixes the fact that two colors of the status
output could not be configured in .git/config.

The color of the current branch could not be modified because of the
name WT_STATUS_ONBRANCH having been changed to WT_STATUS_LOCAL_BRANCH.

The color of the remote branch was not defined at all.

By the way, when I do 'git status' instead of git 'status -sb' the
local and remote branch do not get colored. Is this a desired
behavior?

Nicolas

	Modified   Documentation/config.txt
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 5a841da..7a0ddd6 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -809 +809,2 @@ color.status.<slot>::
-	`branch` (the current branch), or
+	`branch` (the current branch),
+        `remote` (the remote branch) or
	Modified   builtin/commit.c
diff --git a/builtin/commit.c b/builtin/commit.c
index c46f2d1..4674600 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1118 +1118,3 @@ static int parse_status_slot(const char *var, int offset)
-		return WT_STATUS_ONBRANCH;
+		return WT_STATUS_LOCAL_BRANCH;
+	if (!strcasecmp(var+offset, "remote"))
+		return WT_STATUS_REMOTE_BRANCH;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help