Skip to content

Commit baf889c

Browse files
newrengitster
authored andcommitted
sparse-index.h: move declarations for sparse-index.c from cache.h
Note in particular that this reverses the decision made in 118a2e8 ("cache: move ensure_full_index() to cache.h", 2021-04-01). Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f565385 commit baf889c

21 files changed

+21
-2
lines changed

builtin/checkout-index.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "entry.h"
1818
#include "parallel-checkout.h"
1919
#include "setup.h"
20+
#include "sparse-index.h"
2021

2122
#define CHECKOUT_ALL 4
2223
static int nul_term_line;

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "gpg-interface.h"
3939
#include "column.h"
4040
#include "sequencer.h"
41+
#include "sparse-index.h"
4142
#include "mailmap.h"
4243
#include "help.h"
4344
#include "commit-reach.h"

builtin/difftool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "gettext.h"
2424
#include "hex.h"
2525
#include "parse-options.h"
26+
#include "sparse-index.h"
2627
#include "strvec.h"
2728
#include "strbuf.h"
2829
#include "lockfile.h"

builtin/fsck.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "replace-object.h"
2626
#include "resolve-undo.h"
2727
#include "run-command.h"
28+
#include "sparse-index.h"
2829
#include "worktree.h"
2930
#include "pack-revindex.h"
3031
#include "pack-bitmap.h"

builtin/ls-files.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "pathspec.h"
2424
#include "run-command.h"
2525
#include "setup.h"
26+
#include "sparse-index.h"
2627
#include "submodule.h"
2728
#include "submodule-config.h"
2829
#include "object-store.h"

builtin/merge-index.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "hex.h"
44
#include "repository.h"
55
#include "run-command.h"
6+
#include "sparse-index.h"
67

78
static const char *pgm;
89
static int one_shot, quiet;

builtin/read-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "repository.h"
2323
#include "resolve-undo.h"
2424
#include "setup.h"
25+
#include "sparse-index.h"
2526
#include "submodule.h"
2627
#include "submodule-config.h"
2728

builtin/reset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "unpack-trees.h"
3030
#include "cache-tree.h"
3131
#include "setup.h"
32+
#include "sparse-index.h"
3233
#include "submodule.h"
3334
#include "submodule-config.h"
3435
#include "trace.h"

builtin/rm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "repository.h"
2020
#include "string-list.h"
2121
#include "setup.h"
22+
#include "sparse-index.h"
2223
#include "submodule.h"
2324
#include "pathspec.h"
2425

builtin/stash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "rerere.h"
2121
#include "revision.h"
2222
#include "setup.h"
23+
#include "sparse-index.h"
2324
#include "log-tree.h"
2425
#include "diffcore.h"
2526
#include "exec-cmd.h"

0 commit comments

Comments
 (0)