Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: [PATCH] show-branch: color the commit status signs

From: Stephen Boyd <hidden>
Date: 2016-06-15 22:46:38

On Tue, Apr 21, 2009, Markus Heidelberg [off-list ref] wrote:
+--color::
+       Color the status sign of the commits. Each branch uses a single color.
I don't know what the status sign of a commit is without reading your commit
message. Maybe reword this to be:

Color the status sign ('*' '!' '+' '-') of each commit corresponding
to the branch
it's in.
+static char column_colors[][COLOR_MAXLEN] = {
+       GIT_COLOR_RED,
+       GIT_COLOR_GREEN,
+       GIT_COLOR_YELLOW,
+       GIT_COLOR_BLUE,
+       GIT_COLOR_MAGENTA,
+       GIT_COLOR_CYAN,
+};
+
+#define COLUMN_COLORS_MAX (ARRAY_SIZE(column_colors))
This looks like a copy/paste (with a small edit) from graph.c so maybe you
want to refactor the original code from graph.c to color.h?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help