diff options
author | 2015-09-24 17:07:43 -0400 | |
---|---|---|
committer | 2015-10-05 11:08:04 -0700 | |
commit | b4600fbe071898068ef30be2766ee75880ec308b (patch) | |
tree | ee50a70d3f17743800de7bd4726cb917029a01fb /t/t1411-reflog-show.sh | |
parent | transport: use strbufs for status table "quickref" strings (diff) | |
download | tgif-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