| 161 | } |
| 162 | |
| 163 | static int cmd_for_each_ref(struct ref_store *refs, const char **argv) |
| 164 | { |
| 165 | const char *prefix = notnull(*argv++, "prefix"); |
| 166 | struct refs_for_each_ref_options opts = { |
| 167 | .prefix = prefix, |
| 168 | .trim_prefix = strlen(prefix), |
| 169 | }; |
| 170 | return refs_for_each_ref_ext(refs, each_ref, NULL, &opts); |
| 171 | } |
| 172 | |
| 173 | static int cmd_for_each_ref__exclude(struct ref_store *refs, const char **argv) |
| 174 | { |
nothing calls this directly
no test coverage detected