Skip to content

Commit

Permalink
ref-filter: move struct atom_value to ref-filter.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Karthik Nayak authored and Junio C Hamano committed Sep 17, 2015
1 parent e6f2599 commit 3a25761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ref-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down
5 changes: 1 addition & 4 deletions ref-filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
#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;
Expand Down

0 comments on commit 3a25761

Please sign in to comment.