Skip to content

Commit ccd12a3

Browse files
committed
Merge branch 'en/header-split-cache-h-part-2'
More header clean-up. * en/header-split-cache-h-part-2: (22 commits) reftable: ensure git-compat-util.h is the first (indirect) include diff.h: reduce unnecessary includes object-store.h: reduce unnecessary includes commit.h: reduce unnecessary includes fsmonitor: reduce includes of cache.h cache.h: remove unnecessary headers treewide: remove cache.h inclusion due to previous changes cache,tree: move basic name compare functions from read-cache to tree cache,tree: move cmp_cache_name_compare from tree.[ch] to read-cache.c hash-ll.h: split out of hash.h to remove dependency on repository.h tree-diff.c: move S_DIFFTREE_IFXMIN_NEQ define from cache.h dir.h: move DTYPE defines from cache.h versioncmp.h: move declarations for versioncmp.c functions from cache.h ws.h: move declarations for ws.c functions from cache.h match-trees.h: move declarations for match-trees.c functions from cache.h pkt-line.h: move declarations for pkt-line.c functions from cache.h base85.h: move declarations for base85.c functions from cache.h copy.h: move declarations for copy.c functions from cache.h server-info.h: move declarations for server-info.c functions from cache.h packfile.h: move pack_window and pack_entry from cache.h ...
2 parents ab828cd + e3a3f5e commit ccd12a3

File tree

217 files changed

+786
-545
lines changed

Some content is hidden

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

217 files changed

+786
-545
lines changed

add-interactive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "dir.h"
1313
#include "run-command.h"
1414
#include "prompt.h"
15+
#include "tree.h"
1516

1617
static void init_color(struct repository *r, struct add_i_state *s,
1718
const char *section_and_slot, char *dst,

alloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "blob.h"
1414
#include "tree.h"
1515
#include "commit.h"
16+
#include "repository.h"
1617
#include "tag.h"
1718
#include "alloc.h"
1819

apply.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "cache.h"
1111
#include "abspath.h"
1212
#include "alloc.h"
13+
#include "base85.h"
1314
#include "config.h"
1415
#include "object-store.h"
1516
#include "blob.h"
@@ -30,6 +31,8 @@
3031
#include "apply.h"
3132
#include "entry.h"
3233
#include "setup.h"
34+
#include "symlinks.h"
35+
#include "ws.h"
3336
#include "wrapper.h"
3437

3538
struct gitdiff_data {

apply.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef APPLY_H
22
#define APPLY_H
33

4-
#include "hash.h"
4+
#include "hash-ll.h"
55
#include "lockfile.h"
66
#include "string-list.h"
77
#include "strmap.h"

archive-zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2006 Rene Scharfe
33
*/
4-
#include "cache.h"
4+
#include "git-compat-util.h"
55
#include "config.h"
66
#include "archive.h"
77
#include "gettext.h"

archive.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
#include "environment.h"
77
#include "gettext.h"
88
#include "hex.h"
9+
#include "pretty.h"
910
#include "setup.h"
1011
#include "refs.h"
1112
#include "object-store.h"
1213
#include "commit.h"
14+
#include "tree.h"
1315
#include "tree-walk.h"
1416
#include "attr.h"
1517
#include "archive.h"

attr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "object-store.h"
2121
#include "setup.h"
2222
#include "thread-utils.h"
23+
#include "tree-walk.h"
2324

2425
const char git_attr__true[] = "(builtin)true";
2526
const char git_attr__false[] = "\0(builtin)false";

base85.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
2+
#include "base85.h"
23

34
#undef DEBUG_85
45

base85.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef BASE85_H
2+
#define BASE85_H
3+
4+
int decode_85(char *dst, const char *line, int linelen);
5+
void encode_85(char *buf, const unsigned char *data, int bytes);
6+
7+
#endif /* BASE85_H */

bloom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "hashmap.h"
77
#include "commit-graph.h"
88
#include "commit.h"
9+
#include "commit-slab.h"
910

1011
define_commit_slab(bloom_filter_slab, struct bloom_filter);
1112

0 commit comments

Comments
 (0)