Skip to content

Commit 6d8dc99

Browse files
jltoblergitster
authored andcommitted
docs: clarify git-rev-list(1) --filter behavior
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>
1 parent 9a2fb14 commit 6d8dc99

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Documentation/rev-list-options.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,9 @@ to name units in KiB, MiB, or GiB. For example, `blob:limit=1k`
983983
is the same as 'blob:limit=1024'.
984984
+
985985
The form `--filter=object:type=(tag|commit|tree|blob)` omits all objects
986-
which are not of the requested type.
986+
which are not of the requested type. Note that explicitly provided objects
987+
ignore filters and are always printed unless `--filter-provided-objects` is
988+
also specified.
987989
+
988990
The form `--filter=sparse:oid=<blob-ish>` uses a sparse-checkout
989991
specification contained in the blob (or blob-expression) _<blob-ish>_

0 commit comments

Comments
 (0)