ref-filter: introduce struct used_atom
commitb072add7fbcef19bd49d70fe9adad05b2374295e
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 17 Feb 2016 18:06:11 +0000 (17 23:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2016 22:06:45 +0000 (17 14:06 -0800)
tree9e67fd69524fa4a1f0ed5ff5e68c662f811efc1a
parent50cd83dca100174ba95baa9f6ed8426bce731ac2
ref-filter: introduce struct used_atom

Introduce the 'used_atom' structure to replace the existing
implementation of 'used_atom' (which is a list of atoms). This helps
us parse atoms beforehand and store required details into the
'used_atom' for future usage.

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