diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-09-04 18:08:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-09 15:28:13 -0700 |
commit | 62665823d2ddbe69abdac4a9db399769c3e278b4 (patch) | |
tree | c1260f3c82d3cab09858512a55020743bbc53e9f /refs.c | |
parent | e1e33b722c50c26546335fd5a709f89726c2ea2a (diff) | |
download | git-62665823d2ddbe69abdac4a9db399769c3e278b4.tar.gz |
refs: make verify_refname_available() 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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1428,3 +1428,13 @@ int ref_transaction_commit(struct ref_transaction *transaction, return refs->be->transaction_commit(refs, transaction, err); } + +int verify_refname_available(const char *refname, + const struct string_list *extra, + const struct string_list *skip, + struct strbuf *err) +{ + struct ref_store *refs = get_ref_store(NULL); + + return refs->be->verify_refname_available(refs, refname, extra, skip, err); +} |