diff options
author | Jeff King <peff@peff.net> | 2015-08-10 12:37:27 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-11 01:37:13 +0300 |
commit | 470e28d4e16dd994cd985914377fa8ccb5f86227 (patch) | |
tree | d931740e44eff33ae5c83028c869a7217363e663 /bisect.c | |
parent | 5f8ef5b84889e7792e929a0fc773cb0060a0a611 (diff) |
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 'bisect.c')
0 files changed, 0 insertions, 0 deletions