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

Function output_color

grep.c:883–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883static void output_color(struct grep_opt *opt, const void *data, size_t size,
884 const char *color)
885{
886 if (want_color(opt->color) && color && color[0]) {
887 opt->output(opt, color, strlen(color));
888 opt->output(opt, data, size);
889 opt->output(opt, GIT_COLOR_RESET, strlen(GIT_COLOR_RESET));
890 } else
891 opt->output(opt, data, size);
892}
893
894static void output_sep(struct grep_opt *opt, char sign)
895{

Callers 5

output_sepFunction · 0.85
show_nameFunction · 0.85
show_line_headerFunction · 0.85
show_lineFunction · 0.85
grep_source_1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected