Browse Source

Merge branch 'sg/parse-options-h-users'

Code clean-up to include and/or uninclude parse-options.h file as
needed.

* sg/parse-options-h-users:
  treewide: remove unnecessary inclusions of parse-options.h from headers
  treewide: include parse-options.h in source files
main
Junio C Hamano 2 years ago
parent
commit
dbb4102f7b
  1. 1
      builtin/ls-remote.c
  2. 1
      builtin/pack-objects.c
  3. 1
      builtin/receive-pack.c
  4. 1
      builtin/reflog.c
  5. 1
      builtin/send-pack.c
  6. 1
      diagnose.c
  7. 3
      diagnose.h
  8. 1
      list-objects-filter-options.c
  9. 3
      list-objects-filter-options.h
  10. 2
      ref-filter.h
  11. 1
      remote.c
  12. 2
      remote.h
  13. 1
      revision.c
  14. 3
      revision.h
  15. 1
      send-pack.c

1
builtin/ls-remote.c

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
#include "ref-filter.h"
#include "remote.h"
#include "refs.h"
#include "parse-options.h"

static const char * const ls_remote_usage[] = {
N_("git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]\n"

1
builtin/pack-objects.c

@ -39,6 +39,7 @@ @@ -39,6 +39,7 @@
#include "shallow.h"
#include "promisor-remote.h"
#include "pack-mtimes.h"
#include "parse-options.h"

/*
* Objects we are going to pack are collected in the `to_pack` structure.

1
builtin/receive-pack.c

@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
#include "commit-reach.h"
#include "worktree.h"
#include "shallow.h"
#include "parse-options.h"

static const char * const receive_pack_usage[] = {
N_("git receive-pack <git-dir>"),

1
builtin/reflog.c

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "reachable.h"
#include "worktree.h"
#include "reflog.h"
#include "parse-options.h"

#define BUILTIN_REFLOG_SHOW_USAGE \
N_("git reflog [show] [<log-options>] [<ref>]")

1
builtin/send-pack.c

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
#include "gpg-interface.h"
#include "gettext.h"
#include "protocol.h"
#include "parse-options.h"

static const char * const send_pack_usage[] = {
N_("git send-pack [--mirror] [--dry-run] [--force]\n"

1
diagnose.c

@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
#include "strvec.h"
#include "object-store.h"
#include "packfile.h"
#include "parse-options.h"

struct archive_dir {
const char *path;

3
diagnose.h

@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
#define DIAGNOSE_H

#include "strbuf.h"
#include "parse-options.h"

struct option;

enum diagnose_mode {
DIAGNOSE_NONE,

1
list-objects-filter-options.c

@ -11,6 +11,7 @@ @@ -11,6 +11,7 @@
#include "promisor-remote.h"
#include "trace.h"
#include "url.h"
#include "parse-options.h"

static int parse_combine_filter(
struct list_objects_filter_options *filter_options,

3
list-objects-filter-options.h

@ -2,10 +2,11 @@ @@ -2,10 +2,11 @@
#define LIST_OBJECTS_FILTER_OPTIONS_H

#include "object.h"
#include "parse-options.h"
#include "string-list.h"
#include "strbuf.h"

struct option;

/*
* The list of defined filters for list-objects.
*/

2
ref-filter.h

@ -4,7 +4,6 @@ @@ -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 @@ @@ -24,6 +23,7 @@

struct atom_value;
struct ref_sorting;
struct option;

enum ref_sorting_order {
REF_SORTING_REVERSE = 1<<0,

1
remote.c

@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
#include "commit-reach.h"
#include "advice.h"
#include "connect.h"
#include "parse-options.h"

enum map_direction { FROM_SRC, FROM_DST };


2
remote.h

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
#ifndef REMOTE_H
#define REMOTE_H

#include "parse-options.h"
#include "hashmap.h"
#include "refspec.h"

struct option;
struct transport_ls_refs_options;

/**

1
revision.c

@ -37,6 +37,7 @@ @@ -37,6 +37,7 @@
#include "json-writer.h"
#include "list-objects-filter-options.h"
#include "resolve-undo.h"
#include "parse-options.h"

volatile show_early_output_fn_t show_early_output;


3
revision.h

@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
#define REVISION_H

#include "commit.h"
#include "parse-options.h"
#include "grep.h"
#include "notes.h"
#include "pretty.h"
@ -62,6 +61,8 @@ struct string_list; @@ -62,6 +61,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 {

1
send-pack.c

@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
#include "gpg-interface.h"
#include "cache.h"
#include "shallow.h"
#include "parse-options.h"

int option_parse_push_signed(const struct option *opt,
const char *arg, int unset)

Loading…
Cancel
Save