refs: make create_symref() virtual
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 256f7f5..bf96503 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -501,6 +501,10 @@
struct strbuf *err);
typedef int pack_refs_fn(struct ref_store *ref_store, unsigned int flags);
+typedef int create_symref_fn(struct ref_store *ref_store,
+ const char *ref_target,
+ const char *refs_heads_master,
+ const char *logmsg);
/*
* Read a reference from the specified reference store, non-recursively.
@@ -557,6 +561,7 @@
ref_transaction_commit_fn *transaction_commit;
pack_refs_fn *pack_refs;
+ create_symref_fn *create_symref;
read_raw_ref_fn *read_raw_ref;
verify_refname_available_fn *verify_refname_available;