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

Extract parse_align_position() from populate_value(), which, given a
string, would give us the alignment position. This is a preparatory
patch as to introduce prefixes for the %(align) atom and avoid
redundancy in the code.

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