diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2017-01-10 14:19:34 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-10 12:44:30 -0800 |
commit | c58492d4347fb6ee68fbb59b40e34ffde4dc2389 (patch) | |
tree | 1a381c301e49e029f183f71a420d1096837d91a4 /Documentation/git-rm.txt | |
parent | Third batch for 2.12 (diff) | |
download | tgif-c58492d4347fb6ee68fbb59b40e34ffde4dc2389.tar.xz |
ref-filter: implement %(if), %(then), and %(else) atoms
Implement %(if), %(then) and %(else) atoms. Used as
%(if)...%(then)...%(end) or %(if)...%(then)...%(else)...%(end). If the
format string between %(if) and %(then) expands to an empty string, or
to only whitespaces, then the whole %(if)...%(end) expands to the string
following %(then). Otherwise, it expands to the string following
%(else), if any. Nesting of this construct is possible.
This is in preparation for porting over `git branch -l` to use
ref-filter APIs for printing.
Add documentation and tests regarding the same.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-rm.txt')
0 files changed, 0 insertions, 0 deletions