aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-cat-file.adoc
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-04-02 13:13:41 +0200
committerJunio C Hamano <gitster@pobox.com>2025-04-07 14:43:51 -0700
commit8fa9fe171a43b10c47268b6508ad4f39f2f628d6 (patch)
tree92e0a12201e9c4920fb73510868100bcff7b2259 /Documentation/git-cat-file.adoc
parentbuiltin/cat-file: support "blob:limit=" objects filter (diff)
downloadgit-8fa9fe171a43b10c47268b6508ad4f39f2f628d6.tar.gz
git-8fa9fe171a43b10c47268b6508ad4f39f2f628d6.zip
builtin/cat-file: support "object:type=" objects filter
Implement support for the "object:type=" filter in git-cat-file(1), which causes us to omit all objects that don't match the provided object type. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-cat-file.adoc')
-rw-r--r--Documentation/git-cat-file.adoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-cat-file.adoc b/Documentation/git-cat-file.adoc
index 48e05e1af5..74d71c3282 100644
--- a/Documentation/git-cat-file.adoc
+++ b/Documentation/git-cat-file.adoc
@@ -96,6 +96,9 @@ The form '--filter=blob:limit=<n>[kmg]' omits blobs of size at least n
bytes or units. n may be zero. The suffixes k, m, and g can be used 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.
--path=<path>::
For use with `--textconv` or `--filters`, to allow specifying an object