Skip to content

Commit 10c68d2

Browse files
rscharfegitster
authored andcommitted
remove duplicate includes
The following command reports that some header files are included twice: $ git grep '#include' '*.c' | sort | uniq -cd Remove the second #include line in each case, as it has no effect. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 67ad421 commit 10c68d2

7 files changed

Lines changed: 0 additions & 7 deletions

File tree

builtin/blame.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "builtin.h"
1111
#include "config.h"
1212
#include "color.h"
13-
#include "builtin.h"
1413
#include "environment.h"
1514
#include "gettext.h"
1615
#include "hex.h"

builtin/log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "diff-merges.h"
2525
#include "revision.h"
2626
#include "log-tree.h"
27-
#include "builtin.h"
2827
#include "oid-array.h"
2928
#include "tag.h"
3029
#include "reflog-walk.h"

builtin/pack-objects.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include "blob.h"
4545
#include "tree.h"
4646
#include "path-walk.h"
47-
#include "trace2.h"
4847

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

commit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "parse.h"
3232
#include "object-file.h"
3333
#include "object-file-convert.h"
34-
#include "prio-queue.h"
3534

3635
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
3736

object-file-convert.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "hex.h"
77
#include "repository.h"
88
#include "hash.h"
9-
#include "hash.h"
109
#include "object.h"
1110
#include "loose.h"
1211
#include "commit.h"

protocol-caps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "hex.h"
55
#include "pkt-line.h"
66
#include "hash.h"
7-
#include "hex.h"
87
#include "object.h"
98
#include "odb.h"
109
#include "repository.h"

setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "trace.h"
2626
#include "trace2.h"
2727
#include "worktree.h"
28-
#include "exec-cmd.h"
2928

3029
static int inside_git_dir = -1;
3130
static int inside_work_tree = -1;

0 commit comments

Comments
 (0)