Re: [PATCH 3/9] builtin/cat-file: support "blob:none" objects filter
- From
Toon Claes <toon@iotcl.com>
- Date
- Feb 26, 2025, 15:22 UTC
- Message-ID
- <8734g0rary.fsf@iotcl.com>
- In-Reply-To
- <20250221-pks-cat-file-object-type-filter-v1-3-0852530888e2@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 20 quoted lines
> Implement support for the "blob:none" filter in git-cat-file(1), which > causes us to omit all blobs. > > Signed-off-by: Patrick Steinhardt <ps@pks.im> > --- > Documentation/git-cat-file.adoc | 2 ++ > builtin/cat-file.c | 11 ++++++++++- > t/t1006-cat-file.sh | 33 +++++++++++++++++++++++++++++++-- > 3 files changed, 43 insertions(+), 3 deletions(-) > > diff --git a/Documentation/git-cat-file.adoc b/Documentation/git-cat-file.adoc > index 7c1c888079a..c11952d9eca 100644 > --- a/Documentation/git-cat-file.adoc > +++ b/Documentation/git-cat-file.adoc > @@ -86,6 +86,8 @@ OPTIONS > Omit objects from the list of printed objects. This can only be used in > combination with one of the batched modes. The '<filter-spec>' may be > one of the following: > ++ > +The form '--filter=blob:none' omits all blobs.
If we chose to use `--object-filter`, we need to use it here as well. And same for the following commits.
-- Toon