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

Function diff_opt_patience

diff.c:5838–5857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5836}
5837
5838static int diff_opt_patience(const struct option *opt,
5839 const char *arg, int unset)
5840{
5841 struct diff_options *options = opt->value;
5842 int i;
5843
5844 BUG_ON_OPT_NEG(unset);
5845 BUG_ON_OPT_ARG(arg);
5846 /*
5847 * Both --patience and --anchored use PATIENCE_DIFF
5848 * internally, so remove any anchors previously
5849 * specified.
5850 */
5851 for (i = 0; i < options->anchors_nr; i++)
5852 free(options->anchors[i]);
5853 options->anchors_nr = 0;
5854 options->ignore_driver_algorithm = 1;
5855
5856 return set_diff_algorithm(options, "patience");
5857}
5858
5859static int diff_opt_ignore_regex(const struct option *opt,
5860 const char *arg, int unset)

Callers

nothing calls this directly

Calls 1

set_diff_algorithmFunction · 0.70

Tested by

no test coverage detected