Browse Source

builtin.h: remove unneccessary includes

This also made it clear that a few .c files under builtin/ were
depending upon some headers but had forgotten to #include them.  Add the
missing direct includes while at it.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
seen
Elijah Newren 2 years ago committed by Junio C Hamano
parent
commit
64667610fc
  1. 2
      builtin.h
  2. 1
      builtin/check-mailmap.c
  3. 1
      builtin/commit-graph.c
  4. 1
      builtin/config.c
  5. 1
      builtin/credential-cache.c
  6. 1
      builtin/for-each-ref.c
  7. 1
      builtin/init-db.c
  8. 1
      builtin/verify-pack.c

2
builtin.h

@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
#define BUILTIN_H

#include "git-compat-util.h"
#include "strbuf.h"
#include "commit.h"

/*
* builtin API

1
builtin/check-mailmap.c

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "ident.h"
#include "mailmap.h"
#include "parse-options.h"
#include "strbuf.h"
#include "string-list.h"
#include "write-or-die.h"


1
builtin/commit-graph.c

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
#include "builtin.h"
#include "commit.h"
#include "config.h"
#include "dir.h"
#include "environment.h"

1
builtin/config.c

@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
#include "path.h"
#include "quote.h"
#include "setup.h"
#include "strbuf.h"
#include "worktree.h"
#include "wrapper.h"


1
builtin/credential-cache.c

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
#include "gettext.h"
#include "parse-options.h"
#include "path.h"
#include "strbuf.h"
#include "wrapper.h"
#include "write-or-die.h"


1
builtin/for-each-ref.c

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
#include "object.h"
#include "parse-options.h"
#include "ref-filter.h"
#include "strbuf.h"
#include "strvec.h"
#include "commit-reach.h"


1
builtin/init-db.c

@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
#include "parse-options.h"
#include "path.h"
#include "setup.h"
#include "strbuf.h"
#include "wrapper.h"

static int guess_repository_type(const char *git_dir)

1
builtin/verify-pack.c

@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
#include "gettext.h"
#include "run-command.h"
#include "parse-options.h"
#include "strbuf.h"

#define VERIFY_PACK_VERBOSE 01
#define VERIFY_PACK_STAT_ONLY 02

Loading…
Cancel
Save