]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs_verify_refname_available(): implement once for all backends
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 16 Apr 2017 06:41:26 +0000 (08:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Apr 2017 04:32:45 +0000 (21:32 -0700)
commitb05855b5bcaf07fe8a636e621bd9d12d51963b5a
tree01832b86c7e5bf8defc66694362bddd561c8bdab
parente121b9cb5f358c9779e02a2bf96fc545a896ab13
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>
refs.c
refs.h
refs/files-backend.c
refs/refs-internal.h