summaryrefslogtreecommitdiff
path: root/ref-filter.c
diff options
context:
space:
mode:
authorLibravatar Karthik Nayak <karthik.188@gmail.com>2015-08-22 09:09:37 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-17 10:02:48 -0700
commit3a25761a5eb01d797f85621b5844a4eea5a02377 (patch)
tree9cb6cbbb1e8666a47e2e687482f6b9115c108429 /ref-filter.c
parentstrtoul_ui: reject negative values (diff)
downloadtgif-3a25761a5eb01d797f85621b5844a4eea5a02377.tar.xz
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>
Diffstat (limited to 'ref-filter.c')
-rw-r--r--ref-filter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ref-filter.c b/ref-filter.c
index 46963a5a42..e53c77e86b 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -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().