diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2015-11-10 12:42:32 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2015-11-20 04:52:01 -0500 |
commit | d336123160a4d9d31b01ae096ed3cdf135f92216 (patch) | |
tree | 3dc060555b3d22441d6f1495f868dba28b7055cc /test-hashmap.c | |
parent | 7003b3ce21e0ddf9028e124fd9add5ac2319e112 (diff) | |
download | git-d336123160a4d9d31b01ae096ed3cdf135f92216.tar.gz |
verify_refname_available(): new function
Add a new verify_refname_available() function, which checks whether the
refname is available for use, taking all references (both packed and
loose) into account. This function, unlike the old
verify_refname_available(), has semantics independent of the choice of
reference storage, and can therefore be implemented by alternative
reference backends.
Use the new function in a couple of places.
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'test-hashmap.c')
0 files changed, 0 insertions, 0 deletions