From: Junio C Hamano Date: Sun, 04 Oct 2015 17:21:55 GMT Subject: Re: [PATCH 1/9] ref-filter: implement %(if), %(then), and %(else) atoms Message-ID: In-Reply-To: Matthieu Moy writes: >> I found all the suggestions very good, except that the distinction >> between "expands to" and "is printed" bothers me a bit, as they want >> to mean exactly the same thing (imagine this whole thing were inside >> another %(if)...%(then)). > > True. Then let me try again: > > 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. Nice. Thanks.