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

Function git_config_color

config.c:1341–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1339}
1340
1341int git_config_color(char *dest, const char *var, const char *value)
1342{
1343 if (!value)
1344 return config_error_nonbool(var);
1345 if (color_parse(value, dest) < 0)
1346 return -1;
1347 return 0;
1348}
1349
1350/*
1351 * All source specific fields in the union, die_on_error, name and the callbacks

Callers 2

format_config_colorFunction · 0.85
normalize_valueFunction · 0.85

Calls 2

config_error_nonboolFunction · 0.85
color_parseFunction · 0.85

Tested by

no test coverage detected