MCPcopy Index your code
hub / github.com/git/git / parse_algorithm_value

Function parse_algorithm_value

diff.c:220–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220long parse_algorithm_value(const char *value)
221{
222 if (!value)
223 return -1;
224 else if (!strcasecmp(value, "myers") || !strcasecmp(value, "default"))
225 return 0;
226 else if (!strcasecmp(value, "minimal"))
227 return XDF_NEED_MINIMAL;
228 else if (!strcasecmp(value, "patience"))
229 return XDF_PATIENCE_DIFF;
230 else if (!strcasecmp(value, "histogram"))
231 return XDF_HISTOGRAM_DIFF;
232 /*
233 * Please update $__git_diff_algorithms in git-completion.bash
234 * when you add new algorithms.
235 */
236 return -1;
237}
238
239static int parse_one_token(const char **arg, const char *token)
240{

Callers 7

merge_recursive_configFunction · 0.85
parse_merge_optFunction · 0.85
git_diff_ui_configFunction · 0.85
set_diff_algorithmFunction · 0.85
git_blame_configFunction · 0.85
set_diff_algorithmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected