summaryrefslogtreecommitdiff
path: root/t/t5515/refs.br-branches-one-merge
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-08-10 05:37:27 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-10 15:37:13 -0700
commit470e28d4e16dd994cd985914377fa8ccb5f86227 (patch)
treed931740e44eff33ae5c83028c869a7217363e663 /t/t5515/refs.br-branches-one-merge
parentrefs.c: avoid git_path assignment in lock_ref_sha1_basic (diff)
downloadtgif-470e28d4e16dd994cd985914377fa8ccb5f86227.tar.xz
refs.c: remove_empty_directories can take a strbuf
The first thing we do in this function is copy the input into a strbuf. Of the 4 callers, 3 of them already have a strbuf we could use. Let's just take the strbuf, and convert the remaining caller to use a strbuf, rather than a raw git_path. This is safer, anyway, as remove_dir_recursively is a non-trivial function that might use the pathname buffers itself (this is _probably_ OK, as the likely culprit would be calling resolve_gitlink_ref, but we do not pass the proper flags to ask it to avoid blowing away gitlinks). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-branches-one-merge')
0 files changed, 0 insertions, 0 deletions