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

Function refs_rename_ref

refs.c:3112–3122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3110}
3111
3112int refs_rename_ref(struct ref_store *refs, const char *oldref,
3113 const char *newref, const char *logmsg)
3114{
3115 char *msg;
3116 int retval;
3117
3118 msg = normalize_reflog_message(logmsg);
3119 retval = refs->be->rename_ref(refs, oldref, newref, msg);
3120 free(msg);
3121 return retval;
3122}
3123
3124int refs_copy_existing_ref(struct ref_store *refs, const char *oldref,
3125 const char *newref, const char *logmsg)

Callers 2

cmd_rename_refFunction · 0.85
copy_or_rename_branchFunction · 0.85

Calls 1

normalize_reflog_messageFunction · 0.85

Tested by 1

cmd_rename_refFunction · 0.68