Re: [RFC/PATCH 2/3] add a library of code for producing structured output
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Apr 11, 2010, 18:26 UTC
- Message-ID
- <s2hfabb9a1e1004111126i6822abc1ne0e0e5bad6f4ac7@mail.gmail.com>
- In-Reply-To
- <7vy6gtonwt.fsf@alter.siamese.dyndns.org>
Heya,
On Sun, Apr 11, 2010 at 20:16, Junio C Hamano <gitster@pobox.com> wrote:
> I was hoping that the existing low-level -z routines (e.g. "diff-* -z") > follow similar enough patterns to have a corresponding output-z.c and be > handled inside output.c library. But that is not a requirement, just > "would have been nicer if the original were written that way".
I like that idea, I think it would make our plumbing interface more consistent, and further validate the API design. Any plumbing command (once converted) can then be used with -z (or --format=zero or whatever it is) and give a similar output format, very nice.
-- Cheers, Sverre Rabbelier