| 428 | } |
| 429 | |
| 430 | static int parse_funcname(struct userdiff_funcname *f, const char *k, |
| 431 | const char *v, int cflags) |
| 432 | { |
| 433 | f->pattern = NULL; |
| 434 | FREE_AND_NULL(f->pattern_owned); |
| 435 | if (git_config_string(&f->pattern_owned, k, v) < 0) |
| 436 | return -1; |
| 437 | f->pattern = f->pattern_owned; |
| 438 | f->cflags = cflags; |
| 439 | return 0; |
| 440 | } |
| 441 | |
| 442 | static int parse_tristate(int *b, const char *k, const char *v) |
| 443 | { |
no test coverage detected