Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH 04/11] ref-filter: add 'ifexists' atom

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:05:57

Matthieu Moy [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
quoted
Junio C Hamano [off-list ref] writes:
quoted
quoted
Couldn't think of a better replacer, any suggestions would be welcome :)
See below.
...
One way to do all of the above is ...
Note that is just "one way", not the only or not necessarily the
best.  It certainly is not the easiest, I think.

    %(if:atom)...%(endif)

might be easier to implement.
And I find it easier to read or write too. Nested parenthesis in a
format string make them really tricky. That removes the need for
escaping since the content of the if/endif is a format string like the
others, it can use the same escaping rules (IIRC, %% to escape a %).
Yeah, that is also a good point.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help