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>
#include "builtin.h"
#include "config.h"
#include "color.h"
-#include "builtin.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "diff-merges.h"
#include "revision.h"
#include "log-tree.h"
-#include "builtin.h"
#include "oid-array.h"
#include "tag.h"
#include "reflog-walk.h"
#include "blob.h"
#include "tree.h"
#include "path-walk.h"
-#include "trace2.h"
/*
* Objects we are going to pack are collected in the `to_pack` structure.
#include "parse.h"
#include "object-file.h"
#include "object-file-convert.h"
-#include "prio-queue.h"
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);
#include "hex.h"
#include "repository.h"
#include "hash.h"
-#include "hash.h"
#include "object.h"
#include "loose.h"
#include "commit.h"
#include "hex.h"
#include "pkt-line.h"
#include "hash.h"
-#include "hex.h"
#include "object.h"
#include "odb.h"
#include "repository.h"
#include "trace.h"
#include "trace2.h"
#include "worktree.h"
-#include "exec-cmd.h"
static int inside_git_dir = -1;
static int inside_work_tree = -1;