ref-filter: introduce contents_atom_parser()
commit452db3973c7380808d6e000eff609825e0069105
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 17 Feb 2016 18:06:18 +0000 (17 23:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2016 22:06:45 +0000 (17 14:06 -0800)
tree7512bbe9006aaffa95c9fa201ae470ec3a44cdae
parent5339bdad96ace2fa76bf5d80b8596ad84b037aed
ref-filter: introduce contents_atom_parser()

Introduce contents_atom_parser() which will parse the '%(contents)'
atom and store information into the 'used_atom' structure based on the
modifiers used along with the atom. Also introduce body_atom_parser()
and subject_atom_parser() for parsing atoms '%(body)' and '%(subject)'
respectively.

Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Karthik Nayak <Karthik.188@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c