| 3823 | } |
| 3824 | |
| 3825 | static int set_diff_algorithm(struct diff_options *opts, |
| 3826 | const char *alg) |
| 3827 | { |
| 3828 | long value = parse_algorithm_value(alg); |
| 3829 | |
| 3830 | if (value < 0) |
| 3831 | return -1; |
| 3832 | |
| 3833 | /* clear out previous settings */ |
| 3834 | opts->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK; |
| 3835 | opts->xdl_opts |= value; |
| 3836 | |
| 3837 | return 0; |
| 3838 | } |
| 3839 | |
| 3840 | static void builtin_diff(const char *name_a, |
| 3841 | const char *name_b, |
no test coverage detected