| 579 | } |
| 580 | |
| 581 | static void NORETURN unsupported_magic(const char *pattern, |
| 582 | unsigned magic) |
| 583 | { |
| 584 | struct strbuf sb = STRBUF_INIT; |
| 585 | pathspec_magic_names(magic, &sb); |
| 586 | /* |
| 587 | * We may want to substitute "this command" with a command |
| 588 | * name. E.g. when "git add -p" or "git add -i" dies when running |
| 589 | * "checkout -p" |
| 590 | */ |
| 591 | die(_("%s: pathspec magic not supported by this command: %s"), |
| 592 | pattern, sb.buf); |
| 593 | } |
| 594 | |
| 595 | void parse_pathspec(struct pathspec *pathspec, |
| 596 | unsigned magic_mask, unsigned flags, |
no test coverage detected