]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter: --format=%(raw) support --perl
authorZheNing Hu <adlternative@gmail.com>
Mon, 26 Jul 2021 03:26:48 +0000 (03:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jul 2021 19:01:25 +0000 (12:01 -0700)
commit7121c4d4e2877115fb372b3f147fad4cd1306751
tree99eba552be05773ac3b9e14a5358dafc72df2507
parentbd0708c7eb8be43242180a1ea2a0f0acda7a4fbc
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>
Documentation/git-for-each-ref.txt
quote.c
quote.h
ref-filter.c
t/t6300-for-each-ref.sh