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

Function cmd_for_each_ref

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

Source from the content-addressed store, hash-verified

161}
162
163static 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
173static int cmd_for_each_ref__exclude(struct ref_store *refs, const char **argv)
174{

Callers

nothing calls this directly

Calls 2

notnullFunction · 0.85
refs_for_each_ref_extFunction · 0.85

Tested by

no test coverage detected