From: "Дилян Палаузов" <git-dpa@aegee.org>
To: git@vger.kernel.org
Subject: [PATCH] Remove duplicate #include
Date: Fri, 13 Feb 2015 14:47:39 +0000 [thread overview]
Message-ID: <1423838859-15413-1-git-send-email-git-dpa@aegee.org> (raw)
deheader (git://gitorious.org/deheader/deheader.git) found out that
some .c files #include twice one and the same header file.
This patch removes such occurrences and hence speeds up the compilation.
Signed-off-by: Дилян Палаузов <git-dpa@aegee.org>
---
builtin/fetch.c | 1 -
trailer.c | 1 -
transport-helper.c | 1 -
userdiff.c | 1 -
4 files changed, 4 deletions(-)
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 7b84d35..75a55e5 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -11,7 +11,6 @@
#include "run-command.h"
#include "parse-options.h"
#include "sigchain.h"
-#include "transport.h"
#include "submodule.h"
#include "connected.h"
#include "argv-array.h"
diff --git a/trailer.c b/trailer.c
index 623adeb..05b3859 100644
--- a/trailer.c
+++ b/trailer.c
@@ -1,7 +1,6 @@
#include "cache.h"
#include "string-list.h"
#include "run-command.h"
-#include "string-list.h"
#include "commit.h"
#include "trailer.h"
/*
diff --git a/transport-helper.c b/transport-helper.c
index 0224687..3652b16 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -5,7 +5,6 @@
#include "commit.h"
#include "diff.h"
#include "revision.h"
-#include "quote.h"
#include "remote.h"
#include "string-list.h"
#include "thread-utils.h"
diff --git a/userdiff.c b/userdiff.c
index fad52d6..2ccbee5 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -1,6 +1,5 @@
#include "cache.h"
#include "userdiff.h"
-#include "cache.h"
#include "attr.h"
static struct userdiff_driver *drivers;
--
2.3.0.1.g24c2b87
next reply other threads:[~2015-02-13 15:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-13 14:47 Дилян Палаузов [this message]
2015-02-13 21:15 ` [PATCH] Remove duplicate #include Junio C Hamano
2015-02-13 21:57 ` Dilyan Palauzov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423838859-15413-1-git-send-email-git-dpa@aegee.org \
--to=git-dpa@aegee.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).