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

Function diff_opt_ws_error_highlight

diff.c:5508–5520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5506}
5507
5508static int diff_opt_ws_error_highlight(const struct option *option,
5509 const char *arg, int unset)
5510{
5511 struct diff_options *opt = option->value;
5512 int val = parse_ws_error_highlight(arg);
5513
5514 BUG_ON_OPT_NEG(unset);
5515 if (val < 0)
5516 return error(_("unknown value after ws-error-highlight=%.*s"),
5517 -1 - val, arg);
5518 opt->ws_error_highlight = val;
5519 return 0;
5520}
5521
5522static int diff_opt_find_object(const struct option *option,
5523 const char *arg, int unset)

Callers

nothing calls this directly

Calls 2

parse_ws_error_highlightFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected