| 218 | } |
| 219 | |
| 220 | long parse_algorithm_value(const char *value) |
| 221 | { |
| 222 | if (!value) |
| 223 | return -1; |
| 224 | else if (!strcasecmp(value, "myers") || !strcasecmp(value, "default")) |
| 225 | return 0; |
| 226 | else if (!strcasecmp(value, "minimal")) |
| 227 | return XDF_NEED_MINIMAL; |
| 228 | else if (!strcasecmp(value, "patience")) |
| 229 | return XDF_PATIENCE_DIFF; |
| 230 | else if (!strcasecmp(value, "histogram")) |
| 231 | return XDF_HISTOGRAM_DIFF; |
| 232 | /* |
| 233 | * Please update $__git_diff_algorithms in git-completion.bash |
| 234 | * when you add new algorithms. |
| 235 | */ |
| 236 | return -1; |
| 237 | } |
| 238 | |
| 239 | static int parse_one_token(const char **arg, const char *token) |
| 240 | { |
no outgoing calls
no test coverage detected