Skip to content

Commit a034e91

Browse files
newrengitster
authored andcommitted
object-store-ll.h: split this header out of object-store.h
The vast majority of files including object-store.h did not need dir.h nor khash.h. Split the header into two files, and let most just depend upon object-store-ll.h, while letting the two callers that need it depend on the full object-store.h. After this patch: $ git grep -h include..object-store | sort | uniq -c 2 #include "object-store.h" 129 #include "object-store-ll.h" Diff best viewed with `--color-moved`. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8043418 commit a034e91

File tree

131 files changed

+677
-655
lines changed

Some content is hidden

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

131 files changed

+677
-655
lines changed

apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "alloc.h"
1313
#include "base85.h"
1414
#include "config.h"
15-
#include "object-store.h"
15+
#include "object-store-ll.h"
1616
#include "blob.h"
1717
#include "delta.h"
1818
#include "diff.h"

archive-tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "hex.h"
1010
#include "tar.h"
1111
#include "archive.h"
12-
#include "object-store.h"
12+
#include "object-store-ll.h"
1313
#include "streaming.h"
1414
#include "run-command.h"
1515
#include "write-or-die.h"

archive-zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "hex.h"
1010
#include "streaming.h"
1111
#include "utf8.h"
12-
#include "object-store.h"
12+
#include "object-store-ll.h"
1313
#include "userdiff.h"
1414
#include "write-or-die.h"
1515
#include "xdiff-interface.h"

archive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "pretty.h"
1111
#include "setup.h"
1212
#include "refs.h"
13-
#include "object-store.h"
13+
#include "object-store-ll.h"
1414
#include "commit.h"
1515
#include "tree.h"
1616
#include "tree-walk.h"

attr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "quote.h"
2020
#include "read-cache-ll.h"
2121
#include "revision.h"
22-
#include "object-store.h"
22+
#include "object-store-ll.h"
2323
#include "setup.h"
2424
#include "thread-utils.h"
2525
#include "tree-walk.h"

bisect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "commit-slab.h"
1919
#include "commit-reach.h"
2020
#include "object-name.h"
21-
#include "object-store.h"
21+
#include "object-store-ll.h"
2222
#include "path.h"
2323
#include "dir.h"
2424

blame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "git-compat-util.h"
22
#include "refs.h"
3-
#include "object-store.h"
3+
#include "object-store-ll.h"
44
#include "cache-tree.h"
55
#include "mergesort.h"
66
#include "convert.h"

builtin/blame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "dir.h"
3030
#include "progress.h"
3131
#include "object-name.h"
32-
#include "object-store.h"
32+
#include "object-store-ll.h"
3333
#include "pager.h"
3434
#include "blame.h"
3535
#include "refs.h"

builtin/cat-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "packfile.h"
2222
#include "object-file.h"
2323
#include "object-name.h"
24-
#include "object-store.h"
24+
#include "object-store-ll.h"
2525
#include "replace-object.h"
2626
#include "promisor-remote.h"
2727
#include "mailmap.h"

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "mem-pool.h"
1919
#include "merge-recursive.h"
2020
#include "object-name.h"
21-
#include "object-store.h"
21+
#include "object-store-ll.h"
2222
#include "parse-options.h"
2323
#include "path.h"
2424
#include "preload-index.h"

0 commit comments

Comments
 (0)