From 4d4bc41411242028d5670f8f1b305fcd1a7671ad Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 9 Mar 2017 08:27:55 -0500 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- ref-filter.c | 5 +++++ ref-filter.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ref-filter.c b/ref-filter.c index 1ec0fb8391..6546dba732 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -1476,6 +1476,11 @@ enum contains_result { 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 * overflows. diff --git a/ref-filter.h b/ref-filter.h index 154e24c405..e738c5dfd3 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -71,11 +71,6 @@ struct ref_filter { verbose; }; -struct ref_filter_cbdata { - struct ref_array *array; - struct ref_filter *filter; -}; - /* Macros for checking --merged and --no-merged options */ #define _OPT_MERGED_NO_MERGED(option, filter, h) \ { OPTION_CALLBACK, 0, option, (filter), N_("commit"), (h), \ -- 2.11.4.GIT