aboutsummaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorAleksi Aalto <aga@iki.fi>2010-11-18 01:40:05 +0200
committerJunio C Hamano <gitster@pobox.com>2010-11-29 16:31:34 -0800
commit1d282327d7354dd3a1caefa4af06562aa816710d (patch)
tree8779a64c22934c6be78c08705576272b5276bfdf /wt-status.h
parent7d43de925b2771d295d8fc4341b7bd544e2a74fa (diff)
downloadgit-1d282327d7354dd3a1caefa4af06562aa816710d.tar.gz
git-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 'wt-status.h')
-rw-r--r--wt-status.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/wt-status.h b/wt-status.h
index 9df9c9fad..20b17cf43 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -13,7 +13,9 @@ enum color_wt_status {
WT_STATUS_NOBRANCH,
WT_STATUS_UNMERGED,
WT_STATUS_LOCAL_BRANCH,
- WT_STATUS_REMOTE_BRANCH
+ WT_STATUS_REMOTE_BRANCH,
+ WT_STATUS_ONBRANCH,
+ WT_STATUS_MAXSLOT
};
enum untracked_status_type {
@@ -46,7 +48,7 @@ struct wt_status {
int show_ignored_files;
enum untracked_status_type show_untracked_files;
const char *ignore_submodule_arg;
- char color_palette[WT_STATUS_REMOTE_BRANCH+1][COLOR_MAXLEN];
+ char color_palette[WT_STATUS_MAXSLOT][COLOR_MAXLEN];
/* These are computed during processing of the individual sections */
int commitable;