sparse-index.h: move declarations for sparse-index.c from cache.h
Note in particular that this reverses the decision made in 118a2e8bde0 ("cache: move ensure_full_index() to cache.h", 2021-04-01). Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
May 16, 2023 at 06:33 UTC
baf889c2cdc616c7eff67f49608f1d93642c13f0
21 files changed
+21
-2
builtin/checkout-index.c
+1
@@ -17,6 +17,7 @@
17
#include "entry.h"
18
#include "parallel-checkout.h"
19
#include "setup.h"
20
+#include "sparse-index.h"
21
22
#define CHECKOUT_ALL 4
23
static int nul_term_line;
builtin/commit.c
+1
@@ -38,6 +38,7 @@
38
#include "gpg-interface.h"
39
#include "column.h"
40
#include "sequencer.h"
41
+#include "sparse-index.h"
42
#include "mailmap.h"
43
#include "help.h"
44
#include "commit-reach.h"
builtin/difftool.c
+1
@@ -23,6 +23,7 @@
23
#include "gettext.h"
24
#include "hex.h"
25
#include "parse-options.h"
26
+#include "sparse-index.h"
27
#include "strvec.h"
28
#include "strbuf.h"
29
#include "lockfile.h"
builtin/fsck.c
+1
@@ -25,6 +25,7 @@
25
#include "replace-object.h"
26
#include "resolve-undo.h"
27
#include "run-command.h"
28
+#include "sparse-index.h"
29
#include "worktree.h"
30
#include "pack-revindex.h"
31
#include "pack-bitmap.h"
builtin/ls-files.c
+1
@@ -23,6 +23,7 @@
23
#include "pathspec.h"
24
#include "run-command.h"
25
#include "setup.h"
26
+#include "sparse-index.h"
27
#include "submodule.h"
28
#include "submodule-config.h"
29
#include "object-store.h"
builtin/merge-index.c
+1
@@ -3,6 +3,7 @@
3
#include "hex.h"
4
#include "repository.h"
5
#include "run-command.h"
6
+#include "sparse-index.h"
7
8
static const char *pgm;
9
static int one_shot, quiet;
builtin/read-tree.c
+1
@@ -22,6 +22,7 @@
22
#include "repository.h"
23
#include "resolve-undo.h"
24
#include "setup.h"
25
+#include "sparse-index.h"
26
#include "submodule.h"
27
#include "submodule-config.h"
28
builtin/reset.c
+1
@@ -29,6 +29,7 @@
29
#include "unpack-trees.h"
30
#include "cache-tree.h"
31
#include "setup.h"
32
+#include "sparse-index.h"
33
#include "submodule.h"
34
#include "submodule-config.h"
35
#include "trace.h"
builtin/rm.c
+1
@@ -19,6 +19,7 @@
19
#include "repository.h"
20
#include "string-list.h"
21
#include "setup.h"
22
+#include "sparse-index.h"
23
#include "submodule.h"
24
#include "pathspec.h"
25
builtin/stash.c
+1
@@ -20,6 +20,7 @@
20
#include "rerere.h"
21
#include "revision.h"
22
#include "setup.h"
23
+#include "sparse-index.h"
24
#include "log-tree.h"
25
#include "diffcore.h"
26
#include "exec-cmd.h"
builtin/submodule--helper.c
+1
@@ -13,6 +13,7 @@
13
#include "pathspec.h"
14
#include "dir.h"
15
#include "setup.h"
16
+#include "sparse-index.h"
17
#include "submodule.h"
18
#include "submodule-config.h"
19
#include "string-list.h"
builtin/update-index.c
+1
@@ -24,6 +24,7 @@
24
#include "dir.h"
25
#include "repository.h"
26
#include "setup.h"
27
+#include "sparse-index.h"
28
#include "split-index.h"
29
#include "symlinks.h"
30
#include "fsmonitor.h"
cache.h
-2
@@ -327,8 +327,6 @@ int read_index_from(struct index_state *, const char *path,
327
const char *gitdir);
328
int is_index_unborn(struct index_state *);
329
330
-void ensure_full_index(struct index_state *istate);
331
-
330
/* For use with `write_locked_index()`. */
331
#define COMMIT_LOCK (1 << 0)
332
#define SKIP_IF_UNCHANGED (1 << 1)
dir.c
+1
@@ -25,6 +25,7 @@
25
#include "ewah/ewok.h"
26
#include "fsmonitor.h"
27
#include "setup.h"
28
+#include "sparse-index.h"
29
#include "submodule-config.h"
30
#include "symlinks.h"
31
#include "trace2.h"
entry.c
+1
@@ -6,6 +6,7 @@
6
#include "gettext.h"
7
#include "hex.h"
8
#include "name-hash.h"
9
+#include "sparse-index.h"
10
#include "streaming.h"
11
#include "submodule.h"
12
#include "symlinks.h"
merge-ort.c
+1
@@ -38,6 +38,7 @@
38
#include "oid-array.h"
39
#include "promisor-remote.h"
40
#include "revision.h"
41
+#include "sparse-index.h"
42
#include "strmap.h"
43
#include "submodule-config.h"
44
#include "submodule.h"
merge-recursive.c
+1
@@ -29,6 +29,7 @@
29
#include "object-store.h"
30
#include "repository.h"
31
#include "revision.h"
32
+#include "sparse-index.h"
33
#include "string-list.h"
34
#include "submodule-config.h"
35
#include "submodule.h"
resolve-undo.c
+1
@@ -2,6 +2,7 @@
2
#include "dir.h"
3
#include "hash.h"
4
#include "resolve-undo.h"
5
+#include "sparse-index.h"
6
#include "string-list.h"
7
8
/* The only error case is to run out of memory in string-list */
revision.c
+1
@@ -32,6 +32,7 @@
32
#include "packfile.h"
33
#include "worktree.h"
34
#include "setup.h"
35
+#include "sparse-index.h"
36
#include "strvec.h"
37
#include "trace2.h"
38
#include "commit-reach.h"
sequencer.c
+1
@@ -28,6 +28,7 @@
28
#include "merge-ort.h"
29
#include "merge-ort-wrappers.h"
30
#include "refs.h"
31
+#include "sparse-index.h"
32
#include "strvec.h"
33
#include "quote.h"
34
#include "trailer.h"
sparse-index.h
+2
@@ -37,4 +37,6 @@ struct pattern_list;
37
*/
38
void expand_index(struct index_state *istate, struct pattern_list *pl);
39
40
+void ensure_full_index(struct index_state *istate);
41
+
42
#endif