summaryrefslogtreecommitdiff
path: root/builtin/fsck.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2019-09-18 18:35:38 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-09-18 11:19:06 -0700
commit4b3aa170d14279aaf40db95bf3d93d43099e9614 (patch)
tree3d6097d4649b7102965c2ecc1c167459756f98fc /builtin/fsck.c
parentGit 2.23 (diff)
downloadtgif-4b3aa170d14279aaf40db95bf3d93d43099e9614.tar.xz
sha1_name: simplify strbuf handling in interpret_nth_prior_checkout()
Pass the target strbuf to the callback function grab_nth_branch_switch() by reference so that it can add the result string directly instead of having it put the string into a temporary strbuf first. This gets rid of an extra allocation and a string copy. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
0 files changed, 0 insertions, 0 deletions