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

Function cmd_create_symref

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

Source from the content-addressed store, hash-verified

113}
114
115static int cmd_create_symref(struct ref_store *refs, const char **argv)
116{
117 const char *refname = notnull(*argv++, "refname");
118 const char *target = notnull(*argv++, "target");
119 const char *logmsg = *argv++;
120
121 return refs_update_symref(refs, refname, target, logmsg);
122}
123
124static struct flag_definition transaction_flags[] = {
125 FLAG_DEF(REF_NO_DEREF),

Callers

nothing calls this directly

Calls 2

notnullFunction · 0.85
refs_update_symrefFunction · 0.85

Tested by

no test coverage detected