ref-filter: move `struct atom_value` to ref-filter.c

Since atom_value is only required for the internal working of ref-filter it doesn't belong in the public header. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karthik Nayak committed Aug 22, 2015 at 09:09 UTC 3a25761a5eb01d797f85621b5844a4eea5a02377
2 files changed +6 -4
ref-filter.c
+5
@@ -55,6 +55,11 @@ static struct {
55 { "color" },
56 };
57
58 +struct atom_value {
59 + const char *s;
60 + unsigned long ul; /* used for sorting when not FIELD_STR */
61 +};
62 +
63 /*
64 * An atom is a valid field atom listed above, possibly prefixed with
65 * a "*" to denote deref_tag().
ref-filter.h
+1 -4
@@ -16,10 +16,7 @@
16 #define FILTER_REFS_INCLUDE_BROKEN 0x1
17 #define FILTER_REFS_ALL 0x2
18
19 -struct atom_value {
20 - const char *s;
21 - unsigned long ul; /* used for sorting when not FIELD_STR */
22 -};
19 +struct atom_value;
20
21 struct ref_sorting {
22 struct ref_sorting *next;