diff options
author | Jeff King <peff@peff.net> | 2015-08-10 05:36:53 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-10 15:37:13 -0700 |
commit | d6549f3655212bd2de52df0137ceb59180424061 (patch) | |
tree | 89ea714cfc8f344ad008a4877f57e3b97ccd8890 /t/t5515/refs.master_.._.git_one | |
parent | refs.c: simplify strbufs in reflog setup and writing (diff) | |
download | tgif-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.master_.._.git_one')
0 files changed, 0 insertions, 0 deletions