diff options
author | Jeff King <peff@peff.net> | 2015-09-24 17:07:29 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 10:18:18 -0700 |
commit | 7d0581a9abe733d8880113370c4d956b50f5bd9f (patch) | |
tree | 9026279b75fbfef9019be1a24138ec1b54a74444 /blob.c | |
parent | remote-ext: simplify git pkt-line generation (diff) | |
download | tgif-7d0581a9abe733d8880113370c4d956b50f5bd9f.tar.xz |
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 'blob.c')
0 files changed, 0 insertions, 0 deletions