diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-04-16 08:41:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-16 21:32:45 -0700 |
commit | b05855b5bcaf07fe8a636e621bd9d12d51963b5a (patch) | |
tree | 01832b86c7e5bf8defc66694362bddd561c8bdab /refs.h | |
parent | e121b9cb5f358c9779e02a2bf96fc545a896ab13 (diff) | |
download | git-b05855b5bcaf07fe8a636e621bd9d12d51963b5a.tar.gz |
refs_verify_refname_available(): implement once for all backends
It turns out that we can now implement
`refs_verify_refname_available()` based on the other virtual
functions, so there is no need for it to be defined at the backend
level. Instead, define it once in `refs.c` and remove the
`files_backend` definition.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ int read_ref(const char *refname, unsigned char *sha1); int refs_verify_refname_available(struct ref_store *refs, const char *refname, - const struct string_list *extra, + const struct string_list *extras, const struct string_list *skip, struct strbuf *err); |