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

Function refs_copy_existing_ref

refs.c:3124–3134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3122}
3123
3124int refs_copy_existing_ref(struct ref_store *refs, const char *oldref,
3125 const char *newref, const char *logmsg)
3126{
3127 char *msg;
3128 int retval;
3129
3130 msg = normalize_reflog_message(logmsg);
3131 retval = refs->be->copy_ref(refs, oldref, newref, msg);
3132 free(msg);
3133 return retval;
3134}
3135
3136const char *ref_update_original_update_refname(struct ref_update *update)
3137{

Callers 1

copy_or_rename_branchFunction · 0.85

Calls 1

normalize_reflog_messageFunction · 0.85

Tested by

no test coverage detected