summaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-03-28 15:46:23 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-03-30 14:59:50 -0700
commitb0ceab98d72a4861a8cea061487169fb5468b736 (patch)
tree1994fcfed5274f1aab90cbca342d288584dcd608 /bisect.c
parentdiff: avoid fixed-size buffer for patch-ids (diff)
downloadtgif-b0ceab98d72a4861a8cea061487169fb5468b736.tar.xz
tag: use strbuf to format tag header
We format the tag header into a fixed 1024-byte buffer. But since the tag-name and tagger ident can be arbitrarily large, we may unceremoniously die with "tag header too big". Let's just use a strbuf instead. Note that it looks at first glance like we can just format this directly into the "buf" strbuf where it will ultimately go. But that buffer may already contain the tag message, and we have no easy way to prepend formatted data to a strbuf (we can only splice in an already-generated buffer). This isn't a performance-critical path, so going through an extra buffer isn't a big deal. Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'bisect.c')
0 files changed, 0 insertions, 0 deletions