| 5671 | } |
| 5672 | |
| 5673 | static int diff_opt_diff_algorithm(const struct option *opt, |
| 5674 | const char *arg, int unset) |
| 5675 | { |
| 5676 | struct diff_options *options = opt->value; |
| 5677 | |
| 5678 | BUG_ON_OPT_NEG(unset); |
| 5679 | |
| 5680 | if (set_diff_algorithm(options, arg)) |
| 5681 | return error(_("option diff-algorithm accepts \"myers\", " |
| 5682 | "\"minimal\", \"patience\" and \"histogram\"")); |
| 5683 | |
| 5684 | options->ignore_driver_algorithm = 1; |
| 5685 | |
| 5686 | return 0; |
| 5687 | } |
| 5688 | |
| 5689 | static int diff_opt_diff_algorithm_no_arg(const struct option *opt, |
| 5690 | const char *arg, int unset) |
nothing calls this directly
no test coverage detected