Skip to content

Commit fbffdfb

Browse files
newrengitster
authored andcommitted
preload-index.h: move declarations for preload-index.c from elsewhere
We already have a preload-index.c file; move the declarations for the functions in that file into a new preload-index.h. These were previously split between cache.h and repository.h. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent baf889c commit fbffdfb

15 files changed

+27
-6
lines changed

add-interactive.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "diffcore.h"
66
#include "gettext.h"
77
#include "hex.h"
8+
#include "preload-index.h"
89
#include "revision.h"
910
#include "refs.h"
1011
#include "string-list.h"

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "cache-tree.h"
1818
#include "run-command.h"
1919
#include "parse-options.h"
20+
#include "preload-index.h"
2021
#include "diff.h"
2122
#include "diffcore.h"
2223
#include "revision.h"

builtin/am.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 "branch.h"
3131
#include "object-name.h"
32+
#include "preload-index.h"
3233
#include "sequencer.h"
3334
#include "revision.h"
3435
#include "merge-recursive.h"

builtin/checkout.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "object-name.h"
2121
#include "object-store.h"
2222
#include "parse-options.h"
23+
#include "preload-index.h"
2324
#include "refs.h"
2425
#include "remote.h"
2526
#include "resolve-undo.h"

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "utf8.h"
3131
#include "object-name.h"
3232
#include "parse-options.h"
33+
#include "preload-index.h"
3334
#include "string-list.h"
3435
#include "rerere.h"
3536
#include "unpack-trees.h"

builtin/diff-files.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "diff.h"
99
#include "diff-merges.h"
1010
#include "commit.h"
11+
#include "preload-index.h"
1112
#include "revision.h"
1213
#include "builtin.h"
1314
#include "submodule.h"

builtin/diff-index.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "diff.h"
44
#include "diff-merges.h"
55
#include "commit.h"
6+
#include "preload-index.h"
67
#include "revision.h"
78
#include "builtin.h"
89
#include "setup.h"

builtin/diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "diff.h"
1717
#include "diff-merges.h"
1818
#include "diffcore.h"
19+
#include "preload-index.h"
1920
#include "revision.h"
2021
#include "log-tree.h"
2122
#include "builtin.h"

builtin/stash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "run-command.h"
1818
#include "dir.h"
1919
#include "entry.h"
20+
#include "preload-index.h"
2021
#include "rerere.h"
2122
#include "revision.h"
2223
#include "setup.h"

builtin/submodule--helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "parse-options.h"
1212
#include "quote.h"
1313
#include "pathspec.h"
14+
#include "preload-index.h"
1415
#include "dir.h"
1516
#include "setup.h"
1617
#include "sparse-index.h"

0 commit comments

Comments
 (0)