diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-04-16 08:41:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-16 21:32:45 -0700 |
commit | 524a9fdb51b1c7de5bcb83f6ea44015dabef466c (patch) | |
tree | 213fabd09f00bdaaf1ad603bbba42478c1242034 /tree.h | |
parent | refs_verify_refname_available(): implement once for all backends (diff) | |
download | tgif-524a9fdb51b1c7de5bcb83f6ea44015dabef466c.tar.xz |
refs_verify_refname_available(): use function in more places
Change `lock_raw_ref()` and `lock_ref_sha1_basic()` to use
`refs_verify_refname_available()` instead of
`verify_refname_available_dir()`. This means that those callsites now
check for conflicts with all references rather than just packed refs,
but the performance cost shouldn't be significant (and will be
regained later).
These were the last callers of `verify_refname_available_dir()`, so
also delete that (very complicated) function.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree.h')
0 files changed, 0 insertions, 0 deletions