Skip to content

Commit 5579f44

Browse files
newrengitster
authored andcommitted
treewide: remove unnecessary cache.h inclusion
Several files were including cache.h solely to get other headers, such as trace.h and trace2.h. Since the last few commits have modified files to make these dependencies more explicit, the inclusion of cache.h is no longer needed in several cases. Remove it. Signed-off-by: Elijah Newren <[email protected]> Acked-by: Calvin Wan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5bc0722 commit 5579f44

File tree

10 files changed

+8
-10
lines changed

10 files changed

+8
-10
lines changed

compat/simple-ipc/ipc-unix-socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "gettext.h"
33
#include "simple-ipc.h"
44
#include "strbuf.h"

connect.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "git-compat-util.h"
2-
#include "cache.h"
32
#include "config.h"
43
#include "environment.h"
54
#include "gettext.h"

fetch-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "alloc.h"
33
#include "repository.h"
44
#include "config.h"

pack-write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "environment.h"
33
#include "gettext.h"
44
#include "hex.h"

promisor-remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "gettext.h"
33
#include "hex.h"
44
#include "object-store.h"

protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "config.h"
33
#include "environment.h"
44
#include "protocol.h"

scalar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* The Scalar command-line interface.
33
*/
44

5-
#include "cache.h"
5+
#include "git-compat-util.h"
66
#include "abspath.h"
77
#include "gettext.h"
88
#include "parse-options.h"

t/helper/test-date.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "test-tool.h"
2-
#include "cache.h"
32
#include "date.h"
43
#include "trace.h"
54

trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* along with this program; if not, see <http://www.gnu.org/licenses/>.
2222
*/
2323

24-
#include "cache.h"
24+
#include "git-compat-util.h"
2525
#include "abspath.h"
2626
#include "environment.h"
2727
#include "quote.h"

upload-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "config.h"
33
#include "environment.h"
44
#include "gettext.h"

0 commit comments

Comments
 (0)