diff options
author | Aaron Lipman <alipman88@gmail.com> | 2020-09-18 23:58:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-19 00:41:55 +0200 |
commit | a1b19aa5d43c46fc570f6946ab5ad001dccc8cdf (patch) | |
tree | 7dcdf3603f4bde69d4b681dccd1875afcc3f442a /ref-filter.h | |
parent | ref-filter: allow merged and no-merged filters (diff) | |
download | git-a1b19aa5d43c46fc570f6946ab5ad001dccc8cdf.tar.xz git-a1b19aa5d43c46fc570f6946ab5ad001dccc8cdf.zip |
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>
Diffstat (limited to 'ref-filter.h')
-rw-r--r-- | ref-filter.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ref-filter.h b/ref-filter.h index 2d13928455..feaef4a8fd 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -23,9 +23,6 @@ #define FILTER_REFS_DETACHED_HEAD 0x0020 #define FILTER_REFS_KIND_MASK (FILTER_REFS_ALL | FILTER_REFS_DETACHED_HEAD) -#define DO_MERGE_FILTER_UNREACHABLE 0 -#define DO_MERGE_FILTER_REACHABLE 1 - struct atom_value; struct ref_sorting { |