ref-filter: include reference to 'used_atom' within 'atom_value'
commitc58fc85692d759cb33a59e138a94931044a08284
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 10 Jan 2017 08:49:35 +0000 (10 14:19 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jan 2017 20:44:30 +0000 (10 12:44 -0800)
tree0cb2db8ed47b7ca46141d361698bd168c95f7787
parentc58492d4347fb6ee68fbb59b40e34ffde4dc2389
ref-filter: include reference to 'used_atom' within 'atom_value'

Ensure that each 'atom_value' has a reference to its corresponding
'used_atom'. This lets us use values within 'used_atom' in the
'handler' function.

Hence we can get the %(align) atom's parameters directly from the
'used_atom' therefore removing the necessity of passing %(align) atom's
parameters to 'atom_value'.

This also acts as a preparatory patch for the upcoming patch where we
introduce %(if:equals=) and %(if:notequals=).

Signed-off-by: Karthik Nayak <Karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c