| 5836 | } |
| 5837 | |
| 5838 | static 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 | |
| 5859 | static int diff_opt_ignore_regex(const struct option *opt, |
| 5860 | const char *arg, int unset) |
nothing calls this directly
no test coverage detected