From: Felipe Contreras Date: Mon, 31 May 2021 16:07:26 GMT Subject: Re: [PATCH] [GSOC] cat-file: fix --batch report changed-type bug Message-ID: <60b509be97423_24d2820856@natae.notmuch> In-Reply-To: Jeff King wrote: > 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