Re: [PATCH v12 03/13] ref-filter: introduce the ref_formatting_state stack machinery
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Aug 20, 2015, 17:19 UTC
- Message-ID
- <vpqmvxlubbs.fsf@anie.imag.fr>
- In-Reply-To
- <xmqqvbc97vpn.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
> So I think 'quote' should apply only to the top-level atoms in the > nested %(magic)...%(end) world.
This is true in most cases, but I think there would also be use-cases where you would want the opposite, like:
--format '
%(if:whatever)
echo %(refname)
%(end)
'I'm not sure what's best, but if both can make sense, perhaps we should just keep the simplest to implement, i.e. the current behavior.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/