summaryrefslogtreecommitdiff
path: root/t/t5515/fetch.master_.._.git
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-08-10 08:26:38 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-10 15:37:13 -0700
commit54b418f6985568bcb71c354ada204efe103b870e (patch)
tree43611c2e514c31ef984b93335d1f33b4ebcdc0df /t/t5515/fetch.master_.._.git
parentpath.c: drop git_path_submodule (diff)
downloadtgif-54b418f6985568bcb71c354ada204efe103b870e.tar.xz
refs.c: simplify strbufs in reflog setup and writing
Commit 1a83c24 (git_snpath(): retire and replace with strbuf_git_path(), 2014-11-30) taught log_ref_setup and log_ref_write_1 to take a strbuf parameter, rather than a bare string. It then makes an alias to the strbuf's "buf" field under the original name. This made the original diff much shorter, but the resulting code is more complicated that it needs to be. Since we've aliased the pointer, we drop our reference to the strbuf to ensure we don't accidentally change it. But if we simply drop our alias and use "logfile.buf" directly, we do not have to worry about this aliasing. It's a larger diff, but the resulting code is simpler. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.master_.._.git')
0 files changed, 0 insertions, 0 deletions