* Wrapper around parse_refname which skips the next delimiter. */
| 93 | * Wrapper around parse_refname which skips the next delimiter. |
| 94 | */ |
| 95 | static char *parse_next_refname(const char **next) |
| 96 | { |
| 97 | if (line_termination) { |
| 98 | /* Without -z, consume SP and use next argument */ |
| 99 | if (!**next || **next == line_termination) |
| 100 | return NULL; |
| 101 | if (**next != ' ') |
| 102 | die("expected SP but got: %s", *next); |
| 103 | } else { |
| 104 | /* With -z, read the next NUL-terminated line */ |
| 105 | if (**next) |
| 106 | return NULL; |
| 107 | } |
| 108 | /* Skip the delimiter */ |
| 109 | (*next)++; |
| 110 | |
| 111 | return parse_refname(next); |
| 112 | } |
| 113 | |
| 114 | /* |
| 115 | * Wrapper around parse_arg which skips the next delimiter. |
no test coverage detected