ref-filter: introduce parsing functions for each valid atom
commit4de707ea4f61f9df7d2a76303df00caa5ec0899d
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 17 Feb 2016 18:06:12 +0000 (17 23:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2016 22:06:45 +0000 (17 14:06 -0800)
tree482b98e75e6056d1bf4ac0d5762ba3842af27533
parentb072add7fbcef19bd49d70fe9adad05b2374295e
ref-filter: introduce parsing functions for each valid atom

Parsing atoms is done in populate_value(), this is repetitive and
hence expensive. Introduce a parsing function which would let us parse
atoms beforehand and store the required details into the 'used_atom'
structure for further usage.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Helped-by: Andreas Schwab <schwab@linux-m68k.org>
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