| 857 | } |
| 858 | |
| 859 | static int blame_diff_algorithm_callback(const struct option *option, |
| 860 | const char *arg, int unset) |
| 861 | { |
| 862 | int *opt = option->value; |
| 863 | long value = parse_algorithm_value(arg); |
| 864 | |
| 865 | BUG_ON_OPT_NEG(unset); |
| 866 | |
| 867 | if (value < 0) |
| 868 | return error(_("option diff-algorithm accepts \"myers\", " |
| 869 | "\"minimal\", \"patience\" and \"histogram\"")); |
| 870 | |
| 871 | *opt &= ~XDF_DIFF_ALGORITHM_MASK; |
| 872 | *opt |= value; |
| 873 | |
| 874 | return 0; |
| 875 | } |
| 876 | |
| 877 | static int is_a_rev(const char *name) |
| 878 | { |
nothing calls this directly
no test coverage detected