Skip to content

Commit d9f517d

Browse files
pks-tgitster
authored andcommitted
object-file: split out functions relating to object store subsystem
While we have the "object-store.h" header, most of the functionality for object stores is actually hosted in "object-file.c". This makes it hard to find relevant functions and causes us to mix up concerns. Split out functions relating to the object store subsystem into a new "object-store.c" file. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 632b5e3 commit d9f517d

20 files changed

+1074
-1040
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,7 @@ LIB_OBJS += notes.o
10861086
LIB_OBJS += object-file-convert.o
10871087
LIB_OBJS += object-file.o
10881088
LIB_OBJS += object-name.o
1089+
LIB_OBJS += object-store.o
10891090
LIB_OBJS += object.o
10901091
LIB_OBJS += oid-array.o
10911092
LIB_OBJS += oidmap.o

builtin/checkout.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "lockfile.h"
1919
#include "mem-pool.h"
2020
#include "merge-recursive.h"
21+
#include "object-file.h"
2122
#include "object-name.h"
2223
#include "object-store-ll.h"
2324
#include "parse-options.h"

builtin/merge-file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "abspath.h"
66
#include "diff.h"
77
#include "hex.h"
8+
#include "object-file.h"
89
#include "object-name.h"
910
#include "object-store.h"
1011
#include "config.h"

builtin/mktree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "strbuf.h"
1212
#include "tree.h"
1313
#include "parse-options.h"
14+
#include "object-file.h"
1415
#include "object-store-ll.h"
1516

1617
static struct treeent {

builtin/notes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "gettext.h"
1515
#include "hex.h"
1616
#include "notes.h"
17+
#include "object-file.h"
1718
#include "object-name.h"
1819
#include "object-store-ll.h"
1920
#include "path.h"

builtin/receive-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "tmp-objdir.h"
3232
#include "oidset.h"
3333
#include "packfile.h"
34+
#include "object-file.h"
3435
#include "object-name.h"
3536
#include "object-store-ll.h"
3637
#include "path.h"

builtin/tag.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "gettext.h"
1818
#include "hex.h"
1919
#include "refs.h"
20+
#include "object-file.h"
2021
#include "object-name.h"
2122
#include "object-store-ll.h"
2223
#include "path.h"

builtin/unpack-file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "builtin.h"
33
#include "config.h"
44
#include "hex.h"
5+
#include "object-file.h"
56
#include "object-name.h"
67
#include "object-store-ll.h"
78

builtin/unpack-objects.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "gettext.h"
99
#include "git-zlib.h"
1010
#include "hex.h"
11+
#include "object-file.h"
1112
#include "object-store-ll.h"
1213
#include "object.h"
1314
#include "delta.h"

commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "tree.h"
3030
#include "hook.h"
3131
#include "parse.h"
32+
#include "object-file.h"
3233
#include "object-file-convert.h"
3334

3435
static struct commit_extra_header *read_commit_extra_header_lines(const char *buf, size_t len, const char **);

0 commit comments

Comments
 (0)