summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-09-04 18:08:28 +0200
committerJunio C Hamano <gitster@pobox.com>2016-09-09 15:28:13 -0700
commit284689ba0ff7506d581bcee7481a2621492135ef (patch)
tree0a83fa4d74ccb811732ff74f360e654b061088ca /refs.c
parent8231527e1510127a5611a2e2f9660e6aef1c981e (diff)
downloadgit-284689ba0ff7506d581bcee7481a2621492135ef.tar.gz
refs: make create_symref() 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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index cdd78b97ac..312c76619f 100644
--- a/refs.c
+++ b/refs.c
@@ -1428,6 +1428,15 @@ int pack_refs(unsigned int flags)
return refs->be->pack_refs(refs, flags);
}
+int create_symref(const char *ref_target, const char *refs_heads_master,
+ const char *logmsg)
+{
+ struct ref_store *refs = get_ref_store(NULL);
+
+ return refs->be->create_symref(refs, ref_target, refs_heads_master,
+ logmsg);
+}
+
int ref_transaction_commit(struct ref_transaction *transaction,
struct strbuf *err)
{