summaryrefslogtreecommitdiff
path: root/t/t1411-reflog-show.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-09-24 17:07:43 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-05 11:08:04 -0700
commitb4600fbe071898068ef30be2766ee75880ec308b (patch)
treeee50a70d3f17743800de7bd4726cb917029a01fb /t/t1411-reflog-show.sh
parenttransport: use strbufs for status table "quickref" strings (diff)
downloadtgif-b4600fbe071898068ef30be2766ee75880ec308b.tar.xz
merge-recursive: convert malloc / strcpy to strbuf
This would be a fairly routine use of xstrfmt, except that we need to remember the length of the result to pass to cache_name_pos. So just use a strbuf, which makes this simple. As a bonus, this gets rid of confusing references to "pathlen+1". The "1" is for the trailing slash we added, but that is automatically accounted for in the strbuf's len parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1411-reflog-show.sh')
0 files changed, 0 insertions, 0 deletions