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>
This commit is contained in:

committed by
Junio C Hamano

parent
e0688e9b28
commit
4d4bc41411
@ -1476,6 +1476,11 @@ enum contains_result {
|
|||||||
CONTAINS_YES = 1
|
CONTAINS_YES = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ref_filter_cbdata {
|
||||||
|
struct ref_array *array;
|
||||||
|
struct ref_filter *filter;
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mimicking the real stack, this stack lives on the heap, avoiding stack
|
* Mimicking the real stack, this stack lives on the heap, avoiding stack
|
||||||
* overflows.
|
* overflows.
|
||||||
|
@ -71,11 +71,6 @@ struct ref_filter {
|
|||||||
verbose;
|
verbose;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ref_filter_cbdata {
|
|
||||||
struct ref_array *array;
|
|
||||||
struct ref_filter *filter;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Macros for checking --merged and --no-merged options */
|
/* Macros for checking --merged and --no-merged options */
|
||||||
#define _OPT_MERGED_NO_MERGED(option, filter, h) \
|
#define _OPT_MERGED_NO_MERGED(option, filter, h) \
|
||||||
{ OPTION_CALLBACK, 0, option, (filter), N_("commit"), (h), \
|
{ OPTION_CALLBACK, 0, option, (filter), N_("commit"), (h), \
|
||||||
|
Reference in New Issue
Block a user