Closed Cactusinhand closed 2 years ago
@Cactusinhand: Thanks for the suggestion. Indeed, --batch-all-objects
is a fast way to enumerate all objects. But git-sizer
(a) only wants to process reachable objects, and (b) depends critically on objects being returned in "parent-to-child" order. I don't think that --batch-all-objects
has either of those properties. So I don't think that this would be easy to change.
@Cactusinhand: Thanks for the suggestion. Indeed,
--batch-all-objects
is a fast way to enumerate all objects. Butgit-sizer
(a) only wants to process reachable objects, and (b) depends critically on objects being returned in "parent-to-child" order. I don't think that--batch-all-objects
has either of those properties. So I don't think that this would be easy to change.
Oh, I get it. Thanks for your reply.
Hi @mhagger
To get all objects in git repo, I wonder if
git cat-file --batch-check='%(objectname) %(objecttype) %(objectsize)' --batch-all-objects
is more effective and easier thangit rev-list --objects --stdin
&&git cat-file --batch-check --buffer
.