summaryrefslogtreecommitdiff
path: root/http-walker.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-09-24 21:07:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-25 17:18:18 (GMT)
commit7d0581a9abe733d8880113370c4d956b50f5bd9f (patch)
tree9026279b75fbfef9019be1a24138ec1b54a74444 /http-walker.c
parentdf1ed03a6fabf58b63b26950c71d36eff4aa25e8 (diff)
downloadgit-7d0581a9abe733d8880113370c4d956b50f5bd9f.zip
git-7d0581a9abe733d8880113370c4d956b50f5bd9f.tar.gz
git-7d0581a9abe733d8880113370c4d956b50f5bd9f.tar.bz2
http-push: use strbuf instead of fwrite_buffer
The http-push code defines an fwrite_buffer function for use as a curl callback; it just writes to a strbuf. There's no reason we need to use it ourselves, as we know we have a strbuf. This lets us format directly into it, rather than dealing with an extra temporary buffer (which required manual length computation). While we're here, let's also remove the literal tabs from the source in favor of "\t", which is more visually obvious. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
0 files changed, 0 insertions, 0 deletions