Skip to content

Commit

Permalink
do not include the same header twice
Browse files Browse the repository at this point in the history
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: Дилян Палаузов <git-dpa@aegee.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Дилян Палаузов authored and Junio C Hamano committed Feb 13, 2015
1 parent 9874fca commit 5d30851
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion builtin/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion trailer.c
Original file line number Diff line number Diff line change
@@ -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"
/*
Expand Down
1 change: 0 additions & 1 deletion transport-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion userdiff.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "cache.h"
#include "userdiff.h"
#include "cache.h"
#include "attr.h"

static struct userdiff_driver *drivers;
Expand Down

0 comments on commit 5d30851

Please sign in to comment.