Skip to content

Commit 5d30851

Browse files
dilyanpalauzovgitster
authored andcommitted
do not include the same header twice
A few files include the same header file directly more than once. As all these headers protect themselves against repeated inclusion by the "#ifndef FOO_H / #define FOO_H / ... / #endif" idiom, leave only the first inclusion and remove the later inclusion as a no-op clean-up. Signed-off-by: Дилян Палаузов <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9874fca commit 5d30851

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

builtin/fetch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "run-command.h"
1212
#include "parse-options.h"
1313
#include "sigchain.h"
14-
#include "transport.h"
1514
#include "submodule.h"
1615
#include "connected.h"
1716
#include "argv-array.h"

trailer.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "cache.h"
22
#include "string-list.h"
33
#include "run-command.h"
4-
#include "string-list.h"
54
#include "commit.h"
65
#include "trailer.h"
76
/*

transport-helper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "commit.h"
66
#include "diff.h"
77
#include "revision.h"
8-
#include "quote.h"
98
#include "remote.h"
109
#include "string-list.h"
1110
#include "thread-utils.h"

userdiff.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "cache.h"
22
#include "userdiff.h"
3-
#include "cache.h"
43
#include "attr.h"
54

65
static struct userdiff_driver *drivers;

0 commit comments

Comments
 (0)