summaryrefslogtreecommitdiff
path: root/t/t5515/refs.br-branches-one_branches-one
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-08-10 05:36:53 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-10 15:37:13 -0700
commitd6549f3655212bd2de52df0137ceb59180424061 (patch)
tree89ea714cfc8f344ad008a4877f57e3b97ccd8890 /t/t5515/refs.br-branches-one_branches-one
parentrefs.c: simplify strbufs in reflog setup and writing (diff)
downloadtgif-d6549f3655212bd2de52df0137ceb59180424061.tar.xz
refs.c: avoid repeated git_path calls in rename_tmp_log
Because it's not safe to store the static-buffer results of git_path for a long time, we end up formatting the same filename over and over. We can fix this by using a function-local strbuf to store the formatted pathname and avoid repeating ourselves. 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_branches-one')
0 files changed, 0 insertions, 0 deletions