MCPcopy Create free account
hub / github.com/git/git / color

Function color

wt-status.c:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57static const char *color(int slot, struct wt_status *s)
58{
59 const char *c = "";
60 if (want_color(s->use_color))
61 c = s->color_palette[slot];
62 if (slot == WT_STATUS_ONBRANCH && color_is_nil(c))
63 c = s->color_palette[WT_STATUS_HEADER];
64 return c;
65}
66
67static void status_vprintf(struct wt_status *s, int at_bol, const char *color,
68 const char *fmt, va_list ap, const char *trail)

Calls 1

color_is_nilFunction · 0.85

Tested by

no test coverage detected