diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-12-16 20:50:03 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-16 20:50:03 (GMT) |
commit | f68b780b2575628eca75e9502e4997f98ad2af3b (patch) | |
tree | 885194f0e88689e63ad9aa154485f795f1dc0ba3 /color.c | |
parent | b932c3c1c16844af9af2b71790caaca30546e99e (diff) | |
parent | 148135fc24dce1e61cfd7fcedea4210095099e78 (diff) | |
download | git-f68b780b2575628eca75e9502e4997f98ad2af3b.zip git-f68b780b2575628eca75e9502e4997f98ad2af3b.tar.gz git-f68b780b2575628eca75e9502e4997f98ad2af3b.tar.bz2 |
Merge branch 'aa/status-hilite-branch'
* aa/status-hilite-branch:
default color.status.branch to "same as header"
status: show branchname with a configurable color
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -211,3 +211,8 @@ int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...) va_end(args); return r; } + +int color_is_nil(const char *c) +{ + return !strcmp(c, "NIL"); +} |