Re: Feature request: --format=json
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 24, 2017, 09:28 UTC
- Message-ID
- <CACsJy8DPtfyAAX_cmRLib=eKPMWnew5CsYDV6V3xTTiEg1Kksg@mail.gmail.com>
- In-Reply-To
- <CAH_OBidR8ewMO_B0HM2SU=B+uV=kRjpOKVMcvohEkZ1PSgT92w@mail.gmail.com>
On Mon, Apr 24, 2017 at 3:33 PM, shawn wilson <ag4ve.us@gmail.com> wrote:
Show 7 quoted lines
> Late to the party, but I too would also like json format output (mainly so I > could pipe stuff to jq instead of looking at the man page for which %thing > I'm looking for). That said, it's not at the PR level of want for me. > > OTOH, format=xml would be even more handy IMHO... Which I see has hit both > SO and this ml in the past. Either way /some/ machine output would be a good > thing :)
Personally I'd rather avoid linking to another library just for json/xml formatting. libgit2 would be a great place to have functionality like this and it looks like you don't even have to touch C [1] to do that.
[1] https://gist.github.com/m1el/42472327b4be382b02eb
-- Duy