commit | d6549f3655212bd2de52df0137ceb59180424061 | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Mon Aug 10 05:36:53 2015 -0400 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Aug 10 15:37:13 2015 -0700 |
tree | 89ea714cfc8f344ad008a4877f57e3b97ccd8890 | |
parent | 54b418f6985568bcb71c354ada204efe103b870e [diff] |
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>