aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-09-18 18:35:38 +0200
committerJunio C Hamano <gitster@pobox.com>2019-09-18 11:19:06 -0700
commit4b3aa170d14279aaf40db95bf3d93d43099e9614 (patch)
tree3d6097d4649b7102965c2ecc1c167459756f98fc /contrib/persistent-https
parentGit 2.23 (diff)
downloadgit-4b3aa170d14279aaf40db95bf3d93d43099e9614.tar.gz
git-4b3aa170d14279aaf40db95bf3d93d43099e9614.zip
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 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions