From 1d282327d7354dd3a1caefa4af06562aa816710d Mon Sep 17 00:00:00 2001 From: Aleksi Aalto Date: Thu, 18 Nov 2010 01:40:05 +0200 Subject: status: show branchname with a configurable color You can tell "git status" to paint the name of the current branch in its output (the line that says "On branch ...") by setting the configuration variable color.status.branch; it is by default turned off. Signed-off-by: Aleksi Aalto Signed-off-by: Junio C Hamano --- Documentation/config.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/config.txt b/Documentation/config.txt index 6a6c0b5bd8..6cd762dfb8 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -774,7 +774,8 @@ color.status.:: one of `header` (the header text of the status message), `added` or `updated` (files which are added but not committed), `changed` (files which are changed but not added in the index), - `untracked` (files which are not tracked by git), or + `untracked` (files which are not tracked by git), + `branch` (the current branch), or `nobranch` (the color the 'no branch' warning is shown in, defaulting to red). The values of these variables may be specified as in color.branch.. -- cgit v1.2.3