Re: [PATCH v17 05/14] ref-filter: introduce match_atom_name()

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v17 05/14] ref-filter: introduce match_atom_name()

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

Karthik Nayak [off-list ref] writes:
It is one thing that the user can actually do the check themselves,
but doesn't it make more sense that when we're using colon we expect a
value after it, and something like %(color:) makes no sense when color
specifically needs a value after the colon.
If you imagine the format being built by scripts (we are talking
about plumbing feature --format here), I think you will realize that
it perfectly makes sense to allow them to say "%(atom:$modifiation)"
without having to worry about a special case where $modification
happened to end up being empty.  So no, I do not agree with your
statement at all.

Re: [PATCH v17 05/14] ref-filter: introduce match_atom_name()

From: Karthik Nayak <hidden>
Date: 2016-06-15 23:06:30

On Thu, Sep 10, 2015 at 11:15 PM, Junio C Hamano [off-list ref] wrote:
Karthik Nayak [off-list ref] writes:
quoted
It is one thing that the user can actually do the check themselves,
but doesn't it make more sense that when we're using colon we expect a
value after it, and something like %(color:) makes no sense when color
specifically needs a value after the colon.
If you imagine the format being built by scripts (we are talking
about plumbing feature --format here), I think you will realize that
it perfectly makes sense to allow them to say "%(atom:$modifiation)"
without having to worry about a special case where $modification
happened to end up being empty.  So no, I do not agree with your
statement at all.
Ah! that makes sense, thanks :)

-- 
Regards,
Karthik Nayak
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help