refs: make pack_refs() virtual

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael Haggerty
2016-09-04 18:08:27 +02:00
committed by Junio C Hamano
parent 62665823d2
commit 8231527e15
3 changed files with 15 additions and 2 deletions

7
refs.c
View File

@ -1421,6 +1421,13 @@ void assert_main_repository(struct ref_store *refs, const char *caller)
}
/* backend functions */
int pack_refs(unsigned int flags)
{
struct ref_store *refs = get_ref_store(NULL);
return refs->be->pack_refs(refs, flags);
}
int ref_transaction_commit(struct ref_transaction *transaction,
struct strbuf *err)
{