aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-cat-file.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-05 15:52:14 -0700
committerJunio C Hamano <gitster@pobox.com>2022-08-05 15:52:14 -0700
commit1e92768aa1771d5d326990855e7a582da541ef9b (patch)
tree185d75918a1fe4f5cbae8a93e24b23f824e054f8 /Documentation/git-cat-file.txt
parent3a4d71f52f3a45d14d963c5700bd634e28d58687 (diff)
parentdb9d67f2e9c9ea389f5558d6a168460d51631769 (diff)
downloadgit-1e92768aa1771d5d326990855e7a582da541ef9b.tar.gz
Merge branch 'tb/cat-file-z'
Operating modes like "--batch" of "git cat-file" command learned to take NUL-terminated input, instead of one-item-per-line. * tb/cat-file-z: builtin/cat-file.c: support NUL-delimited input with `-z` t1006: extract --batch-command inputs to variables
Diffstat (limited to 'Documentation/git-cat-file.txt')
-rw-r--r--Documentation/git-cat-file.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt
index 1880e9bba1..ec30b5c574 100644
--- a/Documentation/git-cat-file.txt
+++ b/Documentation/git-cat-file.txt
@@ -14,7 +14,7 @@ SYNOPSIS
'git cat-file' (-t | -s) [--allow-unknown-type] <object>
'git cat-file' (--batch | --batch-check | --batch-command) [--batch-all-objects]
[--buffer] [--follow-symlinks] [--unordered]
- [--textconv | --filters]
+ [--textconv | --filters] [-z]
'git cat-file' (--textconv | --filters)
[<rev>:<path|tree-ish> | --path=<path|tree-ish> <rev>]
@@ -213,6 +213,11 @@ respectively print:
/etc/passwd
--
+-z::
+ Only meaningful with `--batch`, `--batch-check`, or
+ `--batch-command`; input is NUL-delimited instead of
+ newline-delimited.
+
OUTPUT
------