diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-04-27 11:36:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-27 11:36:41 -0700 |
commit | 29dba37f1f3d7d692b3994ccda4a5ea705c7f252 (patch) | |
tree | deec7c8f7d7062e1e54fc2c8acf9f083bc9063ed /color.c | |
parent | Merge branch 'jk/stash-loosen-safety' (diff) | |
parent | Share color list between graph and show-branch (diff) | |
download | tgif-29dba37f1f3d7d692b3994ccda4a5ea705c7f252.tar.xz |
Merge branch 'dm/color-palette'
* dm/color-palette:
Share color list between graph and show-branch
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -3,6 +3,28 @@ int git_use_color_default = 0; +/* + * The list of available column colors. + */ +const char *column_colors_ansi[] = { + GIT_COLOR_RED, + GIT_COLOR_GREEN, + GIT_COLOR_YELLOW, + GIT_COLOR_BLUE, + GIT_COLOR_MAGENTA, + GIT_COLOR_CYAN, + GIT_COLOR_BOLD_RED, + GIT_COLOR_BOLD_GREEN, + GIT_COLOR_BOLD_YELLOW, + GIT_COLOR_BOLD_BLUE, + GIT_COLOR_BOLD_MAGENTA, + GIT_COLOR_BOLD_CYAN, + GIT_COLOR_RESET, +}; + +/* Ignore the RESET at the end when giving the size */ +const int column_colors_ansi_max = ARRAY_SIZE(column_colors_ansi) - 1; + static int parse_color(const char *name, int len) { static const char * const color_names[] = { |