Skip to content

Commit 50cd83d

Browse files
KarthikNayakgitster
authored andcommitted
ref-filter: bump 'used_atom' and related code to the top
Bump code to the top for usage in further patches. Signed-off-by: Karthik Nayak <Karthik.188@gmail.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 1326764 commit 50cd83d

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

ref-filter.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@
1616

1717
typedef enum { FIELD_STR, FIELD_ULONG, FIELD_TIME } cmp_type;
1818

19+
/*
20+
* An atom is a valid field atom listed below, possibly prefixed with
21+
* a "*" to denote deref_tag().
22+
*
23+
* We parse given format string and sort specifiers, and make a list
24+
* of properties that we need to extract out of objects. ref_array_item
25+
* structure will hold an array of values extracted that can be
26+
* indexed with the "atom number", which is an index into this
27+
* array.
28+
*/
29+
static const char **used_atom;
30+
static cmp_type *used_atom_type;
31+
static int used_atom_cnt, need_tagged, need_symref;
32+
static int need_color_reset_at_eol;
33+
1934
static struct {
2035
const char *name;
2136
cmp_type cmp_type;
@@ -91,21 +106,6 @@ struct atom_value {
91106
unsigned long ul; /* used for sorting when not FIELD_STR */
92107
};
93108

94-
/*
95-
* An atom is a valid field atom listed above, possibly prefixed with
96-
* a "*" to denote deref_tag().
97-
*
98-
* We parse given format string and sort specifiers, and make a list
99-
* of properties that we need to extract out of objects. ref_array_item
100-
* structure will hold an array of values extracted that can be
101-
* indexed with the "atom number", which is an index into this
102-
* array.
103-
*/
104-
static const char **used_atom;
105-
static cmp_type *used_atom_type;
106-
static int used_atom_cnt, need_tagged, need_symref;
107-
static int need_color_reset_at_eol;
108-
109109
/*
110110
* Used to parse format string and sort specifiers
111111
*/

0 commit comments

Comments
 (0)