ref-filter: move `struct atom_value` to ref-filter.c
authorKarthik Nayak <karthik.188@gmail.com>
Sat, 22 Aug 2015 03:39:37 +0000 (09:09 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2015 17:02:48 +0000 (10:02 -0700)
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>
ref-filter.c
ref-filter.h
index 46963a5a421255cf2d37bce9338e3c6de3e20d6a..e53c77e86b99929a3e8efee9ddebf5cc2c547ed1 100644 (file)
@@ -55,6 +55,11 @@ static struct {
        { "color" },
 };
 
+struct atom_value {
+       const char *s;
+       unsigned long ul; /* used for sorting when not FIELD_STR */
+};
+
 /*
  * An atom is a valid field atom listed above, possibly prefixed with
  * a "*" to denote deref_tag().
index 6bf27d8bc4a0b32c0c457b34b3a36e457f89b029..45026d04d6d0a04ea9234f2ecb30c77564172c8f 100644 (file)
 #define FILTER_REFS_INCLUDE_BROKEN 0x1
 #define FILTER_REFS_ALL 0x2
 
-struct atom_value {
-       const char *s;
-       unsigned long ul; /* used for sorting when not FIELD_STR */
-};
+struct atom_value;
 
 struct ref_sorting {
        struct ref_sorting *next;