summaryrefslogtreecommitdiff
path: root/t/t2017-checkout-orphan.sh
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2017-10-03 15:17:40 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-04 15:21:31 +0900
commita9155c50bd52b7e27224e9588780ce5f972fa98d (patch)
tree4999bcda5bc7deb47543e53a283a08728fd77f8f /t/t2017-checkout-orphan.sh
parentGit 2.14.2 (diff)
downloadtgif-a9155c50bd52b7e27224e9588780ce5f972fa98d.tar.xz
branch: reset instead of release a strbuf
Our documentation advises to not re-use a strbuf, after strbuf_release has been called on it. Use the proper reset instead. Currently 'strbuf_release' releases and re-initializes the strbuf, so it is safe, but slow. 'strbuf_reset' only resets the internal length variable, such that this could also be accounted for as a micro-optimization. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2017-checkout-orphan.sh')
0 files changed, 0 insertions, 0 deletions