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

Function cmd_delete_refs

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

Source from the content-addressed store, hash-verified

131};
132
133static int cmd_delete_refs(struct ref_store *refs, const char **argv)
134{
135 unsigned int flags = arg_flags(*argv++, "flags", transaction_flags);
136 const char *msg = *argv++;
137 struct string_list refnames = STRING_LIST_INIT_NODUP;
138 int result;
139
140 while (*argv)
141 string_list_append(&refnames, *argv++);
142
143 result = refs_delete_refs(refs, msg, &refnames, flags);
144 string_list_clear(&refnames, 0);
145 return result;
146}
147
148static int cmd_rename_ref(struct ref_store *refs, const char **argv)
149{

Callers

nothing calls this directly

Calls 4

arg_flagsFunction · 0.85
refs_delete_refsFunction · 0.85
string_list_clearFunction · 0.85
string_list_appendFunction · 0.50

Tested by

no test coverage detected