treewide: remove duplicate #include directives
Found with "git grep '^#include ' '*.c' | sort | uniq -d". Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Oct 3, 2019 at 14:18 UTC
2fe44394c8852f7b2625c3d63e9f5d5ad9e9baa9
10 files changed
-12
builtin/am.c
-1
@@ -24,7 +24,6 @@
24
#include "sequencer.h"
25
#include "revision.h"
26
#include "merge-recursive.h"
27
-#include "revision.h"
27
#include "log-tree.h"
28
#include "notes-utils.h"
29
#include "rerere.h"
builtin/blame.c
-1
@@ -26,7 +26,6 @@
26
#include "progress.h"
27
#include "object-store.h"
28
#include "blame.h"
29
-#include "string-list.h"
29
#include "refs.h"
30
31
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
builtin/clone.c
-1
@@ -32,7 +32,6 @@
32
#include "connected.h"
33
#include "packfile.h"
34
#include "list-objects-filter-options.h"
35
-#include "object-store.h"
35
36
/*
37
* Overall FIXMEs:
builtin/describe.c
-1
@@ -15,7 +15,6 @@
15
#include "argv-array.h"
16
#include "run-command.h"
17
#include "object-store.h"
18
-#include "revision.h"
18
#include "list-objects.h"
19
#include "commit-slab.h"
20
builtin/rev-list.c
-1
@@ -18,7 +18,6 @@
18
#include "reflog-walk.h"
19
#include "oidset.h"
20
#include "packfile.h"
21
-#include "object-store.h"
21
22
static const char rev_list_usage[] =
23
"git rev-list [OPTION] <commit-id>... [ -- paths... ]\n"
builtin/worktree.c
-1
@@ -10,7 +10,6 @@
10
#include "run-command.h"
11
#include "sigchain.h"
12
#include "submodule.h"
13
-#include "refs.h"
13
#include "utf8.h"
14
#include "worktree.h"
15
object.c
-1
@@ -7,7 +7,6 @@
7
#include "commit.h"
8
#include "tag.h"
9
#include "alloc.h"
10
-#include "object-store.h"
10
#include "packfile.h"
11
#include "commit-graph.h"
12
packfile.c
-1
@@ -6,7 +6,6 @@
6
#include "mergesort.h"
7
#include "packfile.h"
8
#include "delta.h"
9
-#include "list.h"
9
#include "streaming.h"
10
#include "sha1-lookup.h"
11
#include "commit.h"
shallow.c
-3
@@ -12,10 +12,7 @@
12
#include "diff.h"
13
#include "revision.h"
14
#include "commit-slab.h"
15
-#include "revision.h"
15
#include "list-objects.h"
17
-#include "commit-slab.h"
18
-#include "repository.h"
16
#include "commit-reach.h"
17
18
void set_alternate_shallow_file(struct repository *r, const char *path, int override)
unpack-trees.c
-1
@@ -11,7 +11,6 @@
11
#include "refs.h"
12
#include "attr.h"
13
#include "split-index.h"
14
-#include "dir.h"
14
#include "submodule.h"
15
#include "submodule-config.h"
16
#include "fsmonitor.h"