Karthik Nayak c58492d434 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>
2017-01-10 12:44:30 -08:00
..
2016-12-21 14:57:26 -08:00
2016-12-19 14:45:41 -08:00
2016-09-12 15:03:32 -07:00
2016-07-13 11:24:14 -07:00
2016-10-10 14:03:51 -07:00
2016-10-10 14:03:50 -07:00
2016-07-13 11:24:14 -07:00
2016-12-16 15:27:50 -08:00
2016-12-19 14:45:35 -08:00
2015-07-21 14:08:14 -07:00
2016-08-11 14:35:42 -07:00
2015-10-05 12:30:13 -07:00
2016-12-09 15:14:01 -08:00
2016-03-03 13:43:36 -08:00