| 196 | } |
| 197 | |
| 198 | static int cmd_verify_ref(struct ref_store *refs, const char **argv) |
| 199 | { |
| 200 | const char *refname = notnull(*argv++, "refname"); |
| 201 | struct strbuf err = STRBUF_INIT; |
| 202 | int ret; |
| 203 | |
| 204 | ret = refs_verify_refname_available(refs, refname, NULL, NULL, 0, &err); |
| 205 | if (err.len) |
| 206 | puts(err.buf); |
| 207 | return ret; |
| 208 | } |
| 209 | |
| 210 | static int each_reflog(const char *refname, void *cb_data UNUSED) |
| 211 | { |
nothing calls this directly
no test coverage detected