aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-cat-file.adoc
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-04-02 13:13:40 +0200
committerJunio C Hamano <gitster@pobox.com>2025-04-07 14:43:50 -0700
commitdbe1b32d59699092d549150e2db7af07e3cbfaf3 (patch)
treeeeff6083d28695e8d7ede13e3e4d91184043e8c5 /Documentation/git-cat-file.adoc
parent3794e9bf982cde754a48b569a639bd2e180e754c (diff)
downloadgit-dbe1b32d59699092d549150e2db7af07e3cbfaf3.tar.gz
builtin/cat-file: support "blob:limit=" objects filter
Implement support for the "blob:limit=" filter in git-cat-file(1), which causes us to omit all blobs that are bigger than a certain size. 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.adoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-cat-file.adoc b/Documentation/git-cat-file.adoc
index afcdb0a473..48e05e1af5 100644
--- a/Documentation/git-cat-file.adoc
+++ b/Documentation/git-cat-file.adoc
@@ -91,6 +91,11 @@ OPTIONS
printed at all. The '<filter-spec>' may be one of the following:
+
The form '--filter=blob:none' omits all blobs.
++
+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'.
--path=<path>::
For use with `--textconv` or `--filters`, to allow specifying an object