MCPcopy Index your code
hub / github.com/git/git / debug_ref_iterator_begin

Function debug_ref_iterator_begin

refs/debug.c:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211};
212
213static struct ref_iterator *
214debug_ref_iterator_begin(struct ref_store *ref_store, const char *prefix,
215 const char **exclude_patterns, unsigned int flags)
216{
217 struct debug_ref_store *drefs = (struct debug_ref_store *)ref_store;
218 struct ref_iterator *res =
219 drefs->refs->be->iterator_begin(drefs->refs, prefix,
220 exclude_patterns, flags);
221 struct debug_ref_iterator *diter = xcalloc(1, sizeof(*diter));
222 base_ref_iterator_init(&diter->base, &debug_ref_iterator_vtable);
223 diter->iter = res;
224 trace_printf_key(&trace_refs, "ref_iterator_begin: \"%s\" (0x%x)\n",
225 prefix, flags);
226 return &diter->base;
227}
228
229static int debug_read_raw_ref(struct ref_store *ref_store, const char *refname,
230 struct object_id *oid, struct strbuf *referent,

Callers

nothing calls this directly

Calls 2

xcallocFunction · 0.85
base_ref_iterator_initFunction · 0.85

Tested by

no test coverage detected