Re: [PATCH 2/9] ref-filter: implement %(if:equals=<string>) and %(if:notequals=<string>)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 2, 2015, 20:54 UTC
- Message-ID
- <xmqqlhbl3sb6.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1443807546-5985-3-git-send-email-Karthik.188@gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 14 quoted lines
> Implement %(if:equals=<string>) wherein the if condition is only > satisfied if the value obtained between the %(if:...) and %(then) atom > is the same as the given '<string>'. > > Similarly, implement (if:notequals=<string>) wherein the if condition > is only satisfied if the value obtained between the %(if:...) and > %(then) atom is differnt from the given '<string>'. > > Add tests and Documentation for 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> > ---
The fast that the patch touches only the narrow parts that are specific to %(if),%(then) and %(else) and does not have to touch any generic part (other than the populate_value() parser for obvious reasons) is a good signal that tells us that the basic structure of the code is very sound. I very much like the direction in which this series is going ;-)