Merge branch 'sd/branch-copy'
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 6042645c40614992bbd8ea0b06c53a350449f413..6cfd88ff6b581e3d60c7f81e2e8d74dafee6fc84 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -2036,3 +2036,14 @@ int rename_ref(const char *oldref, const char *newref, const char *logmsg)
 {
        return refs_rename_ref(get_main_ref_store(), oldref, newref, logmsg);
 }
+
+int refs_copy_existing_ref(struct ref_store *refs, const char *oldref,
+                   const char *newref, const char *logmsg)
+{
+       return refs->be->copy_ref(refs, oldref, newref, logmsg);
+}
+
+int copy_existing_ref(const char *oldref, const char *newref, const char *logmsg)
+{
+       return refs_copy_existing_ref(get_main_ref_store(), oldref, newref, logmsg);
+}