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

Function diff_get_color

diff.c:2394–2399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2392}
2393
2394const char *diff_get_color(enum git_colorbool diff_use_color, enum color_diff ix)
2395{
2396 if (want_color(diff_use_color))
2397 return diff_colors[ix];
2398 return "";
2399}
2400
2401const char *diff_line_prefix(struct diff_options *opt)
2402{

Callers 8

dump_slineFunction · 0.85
format_commit_oneFunction · 0.85
format_decorationsFunction · 0.85
interactive_config_initFunction · 0.85
emit_hunk_headerFunction · 0.85
checkdiff_consumeFunction · 0.85
fill_metainfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected