ref-filter: make internal reachable-filter API more precise
authorAaron Lipman <alipman88@gmail.com>
Fri, 18 Sep 2020 21:58:41 +0000 (17:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Sep 2020 22:41:55 +0000 (15:41 -0700)
commita1b19aa5d43c46fc570f6946ab5ad001dccc8cdf
tree7dcdf3603f4bde69d4b681dccd1875afcc3f442a
parent21bf933928c02372633b88aa6c4d9d71271d42b3
ref-filter: make internal reachable-filter API more precise

The internal reachable-filter API is a bit loose and imprecise; it
also bleeds unnecessarily into the public header. Tighten the API
by:

* renaming do_merge_filter() to reach_filter()

* separating parameters to explicitly identify what data is used
  by the function instead of passing an entire ref_filter_cbdata
  struct

* renaming and moving internal constants from header to source
  file

Signed-off-by: Aaron Lipman <alipman88@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
ref-filter.h