Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
color: delay auto-color decision until point of use
[gitweb.git]
/
log-tree.c
diff --git
a/log-tree.c
b/log-tree.c
index 9ba8fb2af37ae0b027b4f9df1f01e3bcf1f2888c..95d6d4080e2eeee6725efc458134ea493ac4c06a 100644
(file)
--- a/
log-tree.c
+++ b/
log-tree.c
@@
-31,7
+31,7
@@
static char decoration_colors[][COLOR_MAXLEN] = {
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)
{
- if (
decorate_use_color > 0
)
+ if (
want_color(decorate_use_color)
)
return decoration_colors[ix];
return "";
}