| 428 | } |
| 429 | |
| 430 | static const char *parse_element_magic(unsigned *magic, int *prefix_len, |
| 431 | struct pathspec_item *item, |
| 432 | const char *elem) |
| 433 | { |
| 434 | if (elem[0] != ':' || get_literal_global()) |
| 435 | return elem; /* nothing to do */ |
| 436 | else if (elem[1] == '(') |
| 437 | /* longhand */ |
| 438 | return parse_long_magic(magic, prefix_len, item, elem); |
| 439 | else |
| 440 | /* shorthand */ |
| 441 | return parse_short_magic(magic, elem); |
| 442 | } |
| 443 | |
| 444 | /* |
| 445 | * Perform the initialization of a pathspec_item based on a pathspec element. |
no test coverage detected