Skip to content

Commit df6e874

Browse files
newrengitster
authored andcommitted
diff.h: remove unnecessary include of oidset.h
This also made it clear that several .c files depended upon various things that oidset included, but had omitted the direct #include for those headers. Add those now. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c339932 commit df6e874

30 files changed

+35
-1
lines changed

add-interactive.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
#include "config.h"
55
#include "diffcore.h"
66
#include "gettext.h"
7+
#include "hash.h"
78
#include "hex.h"
89
#include "preload-index.h"
910
#include "read-cache-ll.h"
11+
#include "repository.h"
1012
#include "revision.h"
1113
#include "refs.h"
1214
#include "string-list.h"

add-patch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "gettext.h"
88
#include "object-name.h"
99
#include "read-cache-ll.h"
10+
#include "repository.h"
1011
#include "strbuf.h"
1112
#include "run-command.h"
1213
#include "strvec.h"

blame.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define BLAME_H
33

44
#include "commit.h"
5+
#include "oidset.h"
56
#include "xdiff-interface.h"
67
#include "revision.h"
78
#include "prio-queue.h"

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "diff.h"
2222
#include "diffcore.h"
2323
#include "read-cache.h"
24+
#include "repository.h"
2425
#include "revision.h"
2526
#include "bulk-checkin.h"
2627
#include "strvec.h"

builtin/diff-files.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "diff-merges.h"
1010
#include "commit.h"
1111
#include "preload-index.h"
12+
#include "repository.h"
1213
#include "revision.h"
1314
#include "submodule.h"
1415

builtin/diff-index.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "diff-merges.h"
55
#include "commit.h"
66
#include "preload-index.h"
7+
#include "repository.h"
78
#include "revision.h"
89
#include "setup.h"
910
#include "submodule.h"

builtin/merge-ours.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "git-compat-util.h"
1111
#include "builtin.h"
1212
#include "diff.h"
13+
#include "repository.h"
1314

1415
static const char builtin_merge_ours_usage[] =
1516
"git merge-ours <base>... -- HEAD <remote>...";

builtin/patch-id.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "config.h"
33
#include "diff.h"
44
#include "gettext.h"
5+
#include "hash.h"
56
#include "hex.h"
67
#include "parse-options.h"
78

builtin/range-diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "parse-options.h"
55
#include "range-diff.h"
66
#include "config.h"
7+
#include "repository.h"
78
#include "revision.h"
89

910
static const char * const builtin_range_diff_usage[] = {

builtin/reflog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "builtin.h"
22
#include "config.h"
33
#include "gettext.h"
4+
#include "repository.h"
45
#include "revision.h"
56
#include "reachable.h"
67
#include "worktree.h"

0 commit comments

Comments
 (0)