Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-09-04 19:08:27 +0300
committerJunio C Hamano <gitster@pobox.com>2016-09-10 01:28:13 +0300
commit8231527e1510127a5611a2e2f9660e6aef1c981e (patch)
tree89fff9022bab94959c0b09ae7597f4a6e3241df4 /refs.c
parent62665823d2ddbe69abdac4a9db399769c3e278b4 (diff)
refs: make pack_refs() virtual
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index a5c11088f2..cdd78b97ac 100644
--- a/refs.c
+++ b/refs.c
@@ -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)
{