Re: [Question] Can git cat-file have a type filtering option?
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Apr 9, 2023, 02:19 UTC
- Message-ID
- <ZDIgyKDQ2rJT2YEI@nand.local>
- In-Reply-To
- <ZDIUvK/bF7BFqX5q@nand.local>
On Sat, Apr 08, 2023 at 09:28:28PM -0400, Taylor Blau wrote:
Show 7 quoted lines
> > I don't think so. While `git rev-list` traverses objects and performs > > filtering within a revision, `git cat-file --batch-all-objects` traverses > > all loose and packed objects. It might be difficult to perfectly > > extract the filtering from `git rev-list` and apply it to `git cat-file`. > > `rev-list`'s `--all` option does exactly the former: it looks at all > loose and packed objects instead of doing a traditional object walk.
Sorry, this isn't right: --all pretends as if you passed all references to it over argv, not to just look at the individual loose and packed objects.
Thanks, Taylor