MCPcopy Create free account
hub / github.com/git/git / cmd_verify_ref

Function cmd_verify_ref

t/helper/test-ref-store.c:198–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static 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
210static int each_reflog(const char *refname, void *cb_data UNUSED)
211{

Callers

nothing calls this directly

Calls 2

notnullFunction · 0.85

Tested by

no test coverage detected