From: "ZheNing Hu via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
Christian Couder <christian.couder@gmail.com>,
Hariom Verma <hariom18599@gmail.com>,
Bagas Sanjaya <bagasdotme@gmail.com>,
ZheNing Hu <adlternative@gmail.com>
Subject: [PATCH v2 0/4] [GSOC][RFC] ref-filter: add %(rest) atom
Date: Wed, 09 Jun 2021 16:11:57 +0000 [thread overview]
Message-ID: <pull.976.v2.git.1623255121.gitgitgadget@gmail.com> (raw)
In-Reply-To: <pull.976.git.1623163082.gitgitgadget@gmail.com>
In order to let git cat-file --batch reuse ref-filter logic, the atom
%(rest) and %(raw) are added to ref-filter.
Change from last version: Use printf "xxx" instead of printf "%b" "xxx" in
test, ensure that strings containing NUL will not be truncated, to avoid the
breakage of the test.
ZheNing Hu (4):
[GSOC] ref-filter: add obj-type check in grab contents
[GSOC] ref-filter: add %(raw) atom
[GSOC] ref-filter: use non-const ref_format in *_atom_parser()
[GSOC] ref-filter: add %(rest) atom
Documentation/git-for-each-ref.txt | 9 ++
builtin/tag.c | 2 +-
ref-filter.c | 226 +++++++++++++++++++++--------
ref-filter.h | 9 +-
t/t3203-branch-output.sh | 4 +
t/t6300-for-each-ref.sh | 211 +++++++++++++++++++++++++++
t/t7004-tag.sh | 4 +
t/t7030-verify-tag.sh | 4 +
8 files changed, 408 insertions(+), 61 deletions(-)
base-commit: 1197f1a46360d3ae96bd9c15908a3a6f8e562207
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-976%2Fadlternative%2Fref-filter-texconv-filters-v2-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-976/adlternative/ref-filter-texconv-filters-v2-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/976
Range-diff vs v1:
1: 48d256db5c34 = 1: 48d256db5c34 [GSOC] ref-filter: add obj-type check in grab contents
2: 428d105ebbad ! 2: abee6a03becb [GSOC] ref-filter: add %(raw) atom
@@ t/t6300-for-each-ref.sh: test_atom refs/myblobs/first contents:body ""
+'
+
+test_expect_success 'set up refs pointing to binary blob' '
-+ printf "%b" "a\0b\0c" >blob1 &&
-+ printf "%b" "a\0c\0b" >blob2 &&
-+ printf "%b" "\0a\0b\0c" >blob3 &&
-+ printf "%b" "abc" >blob4 &&
-+ printf "%b" "\0 \0 \0 " >blob5 &&
-+ printf "%b" "\0 \0a\0 " >blob6 &&
-+ printf "%b" " " >blob7 &&
++ printf "a\0b\0c" >blob1 &&
++ printf "a\0c\0b" >blob2 &&
++ printf "\0a\0b\0c" >blob3 &&
++ printf "abc" >blob4 &&
++ printf "\0 \0 \0 " >blob5 &&
++ printf "\0 \0a\0 " >blob6 &&
++ printf " " >blob7 &&
+ >blob8 &&
+ git hash-object blob1 -w | xargs git update-ref refs/myblobs/blob1 &&
+ git hash-object blob2 -w | xargs git update-ref refs/myblobs/blob2 &&
3: e4a5aeec0409 = 3: c99d1d070a18 [GSOC] ref-filter: use non-const ref_format in *_atom_parser()
4: 5e95292e3de2 = 4: 5a5b5f78aeea [GSOC] ref-filter: add %(rest) atom
--
gitgitgadget
next prev parent reply other threads:[~2021-06-09 16:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 14:37 [PATCH 0/4] [GSOC][RFC] ref-filter: add %(rest) atom ZheNing Hu via GitGitGadget
2021-06-08 14:37 ` [PATCH 1/4] [GSOC] ref-filter: add obj-type check in grab contents ZheNing Hu via GitGitGadget
2021-06-08 14:38 ` [PATCH 2/4] [GSOC] ref-filter: add %(raw) atom ZheNing Hu via GitGitGadget
2021-06-08 14:38 ` [PATCH 3/4] [GSOC] ref-filter: use non-const ref_format in *_atom_parser() ZheNing Hu via GitGitGadget
2021-06-08 14:38 ` [PATCH 4/4] [GSOC] ref-filter: add %(rest) atom ZheNing Hu via GitGitGadget
2021-06-09 3:39 ` [PATCH 0/4] [GSOC][RFC] " Junio C Hamano
2021-06-09 3:55 ` ZheNing Hu
2021-06-09 7:16 ` Junio C Hamano
2021-06-09 16:11 ` ZheNing Hu via GitGitGadget [this message]
2021-06-09 16:11 ` [PATCH v2 1/4] [GSOC] ref-filter: add obj-type check in grab contents ZheNing Hu via GitGitGadget
2021-06-09 16:11 ` [PATCH v2 2/4] [GSOC] ref-filter: add %(raw) atom ZheNing Hu via GitGitGadget
2021-06-09 16:12 ` [PATCH v2 3/4] [GSOC] ref-filter: use non-const ref_format in *_atom_parser() ZheNing Hu via GitGitGadget
2021-06-09 16:12 ` [PATCH v2 4/4] [GSOC] ref-filter: add %(rest) atom ZheNing Hu via GitGitGadget
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.976.v2.git.1623255121.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=adlternative@gmail.com \
--cc=bagasdotme@gmail.com \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hariom18599@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).