Skip to content

Commit c339932

Browse files
newrengitster
authored andcommitted
repository: remove unnecessary include of path.h
This also made it clear that several .c files that depended upon path.h were missing a #include for it; add the missing includes while at it. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0fd2e21 commit c339932

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+70
-2
lines changed

apply.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "object-name.h"
2828
#include "object-file.h"
2929
#include "parse-options.h"
30+
#include "path.h"
3031
#include "quote.h"
3132
#include "read-cache.h"
3233
#include "rerere.h"

archive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "environment.h"
77
#include "gettext.h"
88
#include "hex.h"
9+
#include "path.h"
910
#include "pretty.h"
1011
#include "setup.h"
1112
#include "refs.h"

attr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "attr.h"
1515
#include "dir.h"
1616
#include "gettext.h"
17+
#include "path.h"
1718
#include "utf8.h"
1819
#include "quote.h"
1920
#include "read-cache-ll.h"

bisect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "commit-reach.h"
2020
#include "object-name.h"
2121
#include "object-store.h"
22+
#include "path.h"
2223
#include "dir.h"
2324

2425
static struct oid_array good_revs;

blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "diffcore.h"
99
#include "gettext.h"
1010
#include "hex.h"
11+
#include "path.h"
1112
#include "read-cache.h"
1213
#include "setup.h"
1314
#include "tag.h"

branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "gettext.h"
77
#include "hex.h"
88
#include "object-name.h"
9+
#include "path.h"
910
#include "refs.h"
1011
#include "refspec.h"
1112
#include "remote.h"

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "cache-tree.h"
1717
#include "run-command.h"
1818
#include "parse-options.h"
19+
#include "path.h"
1920
#include "preload-index.h"
2021
#include "diff.h"
2122
#include "diffcore.h"

builtin/am.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "string-list.h"
4242
#include "packfile.h"
4343
#include "pager.h"
44+
#include "path.h"
4445
#include "repository.h"
4546
#include "pretty.h"
4647
#include "wrapper.h"

builtin/bisect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "strvec.h"
1212
#include "run-command.h"
1313
#include "oid-array.h"
14+
#include "path.h"
1415
#include "prompt.h"
1516
#include "quote.h"
1617
#include "revision.h"

builtin/branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "parse-options.h"
1919
#include "branch.h"
2020
#include "diff.h"
21+
#include "path.h"
2122
#include "revision.h"
2223
#include "string-list.h"
2324
#include "column.h"

0 commit comments

Comments
 (0)