diff options
author | ZheNing Hu <adlternative@gmail.com> | 2021-07-26 03:26:50 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-26 12:01:26 -0700 |
commit | b9dee075eb07713a49922f7e1f90a6a9de5c5e5f (patch) | |
tree | 989e44066bf80856880edf37ea3dbcca3a65e2f1 /Documentation | |
parent | ref-filter: use non-const ref_format in *_atom_parser() (diff) | |
download | tgif-b9dee075eb07713a49922f7e1f90a6a9de5c5e5f.tar.xz |
ref-filter: add %(rest) atom
%(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".
Reviewed-by: Jacob Keller <jacob.keller@gmail.com>
Suggected-by: Jacob Keller <jacob.keller@gmail.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions