diff options
author | Aleksi Aalto <aga@iki.fi> | 2010-11-18 01:40:05 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-29 16:31:34 -0800 |
commit | 1d282327d7354dd3a1caefa4af06562aa816710d (patch) | |
tree | 8779a64c22934c6be78c08705576272b5276bfdf /Documentation | |
parent | Merge branch 'cb/maint-orphan-merge-noclobber' (diff) | |
download | tgif-1d282327d7354dd3a1caefa4af06562aa816710d.tar.xz |
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 <aga@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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.<slot>:: 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.<slot>. |