Re: [PATCH] [GSOC] cat-file: fix --batch report changed-type bug
Show 8 quoted lines
> The simplest test is just:
>
> git -C all-two cat-file --batch-all-objects --batch="%(objectname)" >/dev/null
>
> which will currently fail. It would be nice to verify that its output is
> sensible, but I'm not sure how to easily do that (it will spew a bunch
> of binary tree data, and it cannot even be parsed reliably since we
> haven't output the sizes).
I use ruby to parse binary data from git all the time:
git log --format='%b%x00' |
ruby -e 'ARGF.each("\0", chomp: true) { |chunk| p chunk }'--
Felipe Contreras