diff --git a/diagnose.h b/diagnose.h index 7a4951a7863..f525219ab0c 100644 --- a/diagnose.h +++ b/diagnose.h @@ -2,7 +2,8 @@ #define DIAGNOSE_H #include "strbuf.h" -#include "parse-options.h" + +struct option; enum diagnose_mode { DIAGNOSE_NONE, diff --git a/list-objects-filter-options.h b/list-objects-filter-options.h index 1fe393f4473..aad295f2327 100644 --- a/list-objects-filter-options.h +++ b/list-objects-filter-options.h @@ -2,9 +2,10 @@ #define LIST_OBJECTS_FILTER_OPTIONS_H #include "cache.h" -#include "parse-options.h" #include "string-list.h" +struct option; + /* * The list of defined filters for list-objects. */ diff --git a/ref-filter.h b/ref-filter.h index aa0eea4ecf5..daa6d020174 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -4,7 +4,6 @@ #include "oid-array.h" #include "refs.h" #include "commit.h" -#include "parse-options.h" /* Quoting styles */ #define QUOTE_NONE 0 @@ -24,6 +23,7 @@ struct atom_value; struct ref_sorting; +struct option; enum ref_sorting_order { REF_SORTING_REVERSE = 1<<0, diff --git a/remote.h b/remote.h index 1ebbe42792e..92eccf22ec9 100644 --- a/remote.h +++ b/remote.h @@ -2,10 +2,10 @@ #define REMOTE_H #include "cache.h" -#include "parse-options.h" #include "hashmap.h" #include "refspec.h" +struct option; struct transport_ls_refs_options; /** diff --git a/revision.h b/revision.h index 30febad09a1..d5b26db955b 100644 --- a/revision.h +++ b/revision.h @@ -2,7 +2,6 @@ #define REVISION_H #include "commit.h" -#include "parse-options.h" #include "grep.h" #include "notes.h" #include "pretty.h" @@ -61,6 +60,8 @@ struct string_list; struct saved_parents; struct bloom_key; struct bloom_filter_settings; +struct option; +struct parse_opt_ctx_t; define_shared_commit_slab(revision_sources, char *); struct rev_cmdline_info {