refs: make delete_refs() virtual
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 693d10fba7d087e129f27e7c1dadae32a445f87f..f26601dc0ce78b9e694ea519bc653f08ea3c6b81 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -1532,3 +1532,10 @@ int initial_ref_transaction_commit(struct ref_transaction *transaction,
 
        return refs->be->initial_transaction_commit(refs, transaction, err);
 }
+
+int delete_refs(struct string_list *refnames, unsigned int flags)
+{
+       struct ref_store *refs = get_ref_store(NULL);
+
+       return refs->be->delete_refs(refs, refnames, flags);
+}