Re: [PATCH v3 5/5] [GSOC] ref-filter: add %(rest) atom
From: Junio C Hamano <hidden>
Date: 2021-07-26 17:34:30
Jacob Keller [off-list ref] writes:
On Sat, Jul 24, 2021 at 7:14 AM ZheNing Hu via GitGitGadget [off-list ref] wrote:quoted
From: ZheNing Hu <redacted> %(rest) is a atom used for cat-file batch mode, which can split the input lines at the first whitespace boundary, all characters before that whitespace are considered to be the object name; characters after that first run of whitespace (i.e., the "rest" of the line) are output in place of the %(rest) atom. In order to let "cat-file --batch=%(rest)" use the ref-filter interface, add %(rest) atom for ref-filter. Introduce the reject_atom() to reject the atom %(rest) for "git for-each-ref", "git branch", "git tag" and "git verify-tag". Suggected-by: Jacob Keller [off-list ref] Mentored-by: Christian Couder [off-list ref] Mentored-by: Hariom Verma [off-list ref] Signed-off-by: ZheNing Hu <redacted> ---Thanks for the improved commit message here. That helps clarify what this atom does and aids in understanding the implementation. Reviewed-by: Jacob Keller <redacted>
Thanks, both.