diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-09-04 18:08:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-09 15:28:13 -0700 |
commit | 284689ba0ff7506d581bcee7481a2621492135ef (patch) | |
tree | 0a83fa4d74ccb811732ff74f360e654b061088ca /refs/refs-internal.h | |
parent | 8231527e1510127a5611a2e2f9660e6aef1c981e (diff) | |
download | git-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/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 256f7f581f..bf96503856 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -501,6 +501,10 @@ typedef int ref_transaction_commit_fn(struct ref_store *refs, 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 @@ struct ref_storage_be { 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; |