| 5687 | } |
| 5688 | |
| 5689 | static int diff_opt_diff_algorithm_no_arg(const struct option *opt, |
| 5690 | const char *arg, int unset) |
| 5691 | { |
| 5692 | struct diff_options *options = opt->value; |
| 5693 | |
| 5694 | BUG_ON_OPT_NEG(unset); |
| 5695 | BUG_ON_OPT_ARG(arg); |
| 5696 | |
| 5697 | if (set_diff_algorithm(options, opt->long_name)) |
| 5698 | BUG("available diff algorithms include \"myers\", " |
| 5699 | "\"minimal\", \"patience\" and \"histogram\""); |
| 5700 | |
| 5701 | options->ignore_driver_algorithm = 1; |
| 5702 | |
| 5703 | return 0; |
| 5704 | } |
| 5705 | |
| 5706 | static int diff_opt_dirstat(const struct option *opt, |
| 5707 | const char *arg, int unset) |
nothing calls this directly
no test coverage detected