Browse Source

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: Дилян Палаузов <git-dpa@aegee.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Дилян Палаузов 10 years ago committed by Junio C Hamano
parent
commit
5d308512ff
  1. 1
      builtin/fetch.c
  2. 1
      trailer.c
  3. 1
      transport-helper.c
  4. 1
      userdiff.c

1
builtin/fetch.c

@ -11,7 +11,6 @@ @@ -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"

1
trailer.c

@ -1,7 +1,6 @@ @@ -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"
/*

1
transport-helper.c

@ -5,7 +5,6 @@ @@ -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"

1
userdiff.c

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
#include "cache.h"
#include "userdiff.h"
#include "cache.h"
#include "attr.h"

static struct userdiff_driver *drivers;

Loading…
Cancel
Save