aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-for-each-ref.txt
diff options
context:
space:
mode:
authorZheNing Hu <adlternative@gmail.com>2021-07-26 03:26:48 +0000
committerJunio C Hamano <gitster@pobox.com>2021-07-26 12:01:25 -0700
commit7121c4d4e2877115fb372b3f147fad4cd1306751 (patch)
tree99eba552be05773ac3b9e14a5358dafc72df2507 /Documentation/git-for-each-ref.txt
parentbd0708c7eb8be43242180a1ea2a0f0acda7a4fbc (diff)
downloadgit-7121c4d4e2877115fb372b3f147fad4cd1306751.tar.gz
ref-filter: --format=%(raw) support --perl
Because the perl language can handle binary data correctly, add the function perl_quote_buf_with_len(), which can specify the length of the data and prevent the data from being truncated at '\0' to help `--format="%(raw)"` support `--perl`. Reviewed-by: Jacob Keller <jacob.keller@gmail.com> Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: ZheNing Hu <adlternative@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-for-each-ref.txt')
-rw-r--r--Documentation/git-for-each-ref.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index cbb6f87d13..6da899c629 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -241,8 +241,8 @@ raw:size::
The raw data size of the object.
Note that `--format=%(raw)` can not be used with `--python`, `--shell`, `--tcl`,
-`--perl` because such language may not support arbitrary binary data in their
-string variable type.
+because such language may not support arbitrary binary data in their string
+variable type.
The message in a commit or a tag object is `contents`, from which
`contents:<part>` can be used to extract various parts out of: