Re: Feature request: --format=json
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 18, 2017, 00:38 UTC
- Message-ID
- <xmqq60i2im72.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAJgfmqW4ck9SwBrT_Z7bTOzM2zG==_ONUhTfhbLJtRu=vT+wyg@mail.gmail.com>
"Fred .Flintstone" <eldmannen@gmail.com> writes:
Show 12 quoted lines
> So I would either have to do: > git rev-list --all > Then iterate over each line and do git-cat-file commit <commit-id>. > > Or do: > git rev-list --all | git cat-file --batch > > If I do it in a batch, then it will be tricky to reliably parse since > I don't know when the message body ends and when the next commit > starts. > > JSON output would have been very handy.
I am somewhat puzzled. I thought that you were trying to come up with a way to produce JSON output and people are trying to help you by pointing out tools that you can use for that.