From: Toon Claes Date: Wed, 26 Feb 2025 15:22:25 GMT Subject: Re: [PATCH 3/9] builtin/cat-file: support "blob:none" objects filter Message-ID: <8734g0rary.fsf@iotcl.com> In-Reply-To: <20250221-pks-cat-file-object-type-filter-v1-3-0852530888e2@pks.im> Patrick Steinhardt writes: > Implement support for the "blob:none" filter in git-cat-file(1), which > causes us to omit all blobs. > > Signed-off-by: Patrick Steinhardt > --- > 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 '' 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