cat-file: refactor --batch option parsing
authorJeff King <peff@peff.net>
Wed, 10 Jul 2013 11:38:58 +0000 (07:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2013 17:39:13 +0000 (10:39 -0700)
We currently use an int to tell us whether --batch parsing
is on, and if so, whether we should print the full object
contents. Let's instead factor this into a struct, filled in
by callback, which will make further batch-related options
easy to add.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found