]> git.ipfire.org Git - thirdparty/git.git/commitdiff
docs: clarify git-rev-list(1) --filter behavior
authorJustin Tobler <jltobler@gmail.com>
Mon, 15 Dec 2025 20:05:12 +0000 (14:05 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Dec 2025 01:11:41 +0000 (10:11 +0900)
When using the --filter option for git-rev-list(1), objects that are
explicitly provided ignore filters and are always printed unless the
--filter-provided-objects option is also specified. Clarify this
behavior in the documentation.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/rev-list-options.adoc

index d9665d82c8dfbe051fc0c22ff816b272e45e73bd..453ec590571ffced37db55f27c4eb473c77633c6 100644 (file)
@@ -983,7 +983,9 @@ to name units in KiB, MiB, or GiB.  For example, `blob:limit=1k`
 is the same as 'blob:limit=1024'.
 +
 The form `--filter=object:type=(tag|commit|tree|blob)` omits all objects
-which are not of the requested type.
+which are not of the requested type. Note that explicitly provided objects
+ignore filters and are always printed unless `--filter-provided-objects` is
+also specified.
 +
 The form `--filter=sparse:oid=<blob-ish>` uses a sparse-checkout
 specification contained in the blob (or blob-expression) _<blob-ish>_