summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-09-24 17:07:38 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-05 11:08:04 -0700
commit6c31c22cebe9f0b117fd93ee7792d88e82aaa61e (patch)
tree29f3af8a8309b8d070e33cbb0eb680b01177bf8f /builtin/fetch.c
parentinit: use strbufs to store paths (diff)
downloadtgif-6c31c22cebe9f0b117fd93ee7792d88e82aaa61e.tar.xz
apply: convert root string to strbuf
We use manual computation and strcpy to allocate the "root" variable. This would be much simpler using xstrfmt. But since we store the length, too, we can just use a strbuf, which handles that for us. Note that we stop distinguishing between "no root" and "empty root" in some cases, but that's OK; the results are the same (e.g., inserting an empty string is a noop). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
0 files changed, 0 insertions, 0 deletions