cat-file: split batch "buf" into two variables
commit54d2f0d945abac2d8a8a1bcc258db937e597189e
authorJeff King <peff@peff.net>
Tue, 14 Aug 2018 18:18:06 +0000 (14 14:18 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Aug 2018 19:29:00 +0000 (14 12:29 -0700)
tree8db9ac90885729339f488d429c3f7f6fed96ba09
parentced9fff75dad2578d7583ba3085970b03c66c57b
cat-file: split batch "buf" into two variables

We use the "buf" strbuf for two things: to read incoming
lines, and as a scratch space for test-expanding the
user-provided format. Let's split this into two variables
with descriptive names, which makes their purpose and
lifetime more clear.

It will also help in a future patch when we start using the
"output" buffer for more expansions.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c