"cat-file --batch" will give you the objects in the order you ask.
Thanks, that makes it easy to deal with. In fact, I might prefer to use
git cat-file --batch-check and then use some other library to fetch the blob
contents.
--
Ed Avis [off-list ref]