ref-filter: move ref_cbdata definition into ref-filter.c
This is an implementation detail of how filter_refs() works, and does not need to be exposed to the outside world. This will become more important in future patches as we add new private data types to it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Mar 9, 2017 at 08:27 UTC
4d4bc41411242028d5670f8f1b305fcd1a7671ad
2 files changed
+5
-5
ref-filter.c
+5
@@ -1476,6 +1476,11 @@ enum contains_result {
1476
CONTAINS_YES = 1
1477
};
1478
1479
+struct ref_filter_cbdata {
1480
+ struct ref_array *array;
1481
+ struct ref_filter *filter;
1482
+};
1483
+
1484
/*
1485
* Mimicking the real stack, this stack lives on the heap, avoiding stack
1486
* overflows.
ref-filter.h
-5
@@ -71,11 +71,6 @@ struct ref_filter {
71
verbose;
72
};
73
74
-struct ref_filter_cbdata {
75
- struct ref_array *array;
76
- struct ref_filter *filter;
77
-};
78
-
74
/* Macros for checking --merged and --no-merged options */
75
#define _OPT_MERGED_NO_MERGED(option, filter, h) \
76
{ OPTION_CALLBACK, 0, option, (filter), N_("commit"), (h), \