object-store: move object access functions to object-store.h
authorStefan Beller <sbeller@google.com>
Tue, 15 May 2018 23:42:15 +0000 (16:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 May 2018 02:42:03 +0000 (11:42 +0900)
commitcbd53a2193d11e83b5bad2c3514bd1603074bc36
tree6bbac3f93ec8f2368467c22084522163ae635ad7
parent14ba97f81c7b94e10d591b363688a073023f332d
object-store: move object access functions to object-store.h

This should make these functions easier to find and cache.h less
overwhelming to read.

In particular, this moves:
- read_object_file
- oid_object_info
- write_object_file

As a result, most of the codebase needs to #include object-store.h.
In this patch the #include is only added to files that would fail to
compile otherwise.  It would be better to #include wherever
identifiers from the header are used.  That can happen later
when we have better tooling for it.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
79 files changed:
apply.c
archive-tar.c
archive-zip.c
archive.c
blame.c
builtin/blame.c
builtin/cat-file.c
builtin/checkout.c
builtin/clone.c
builtin/commit-tree.c
builtin/describe.c
builtin/difftool.c
builtin/fast-export.c
builtin/fetch.c
builtin/fmt-merge-msg.c
builtin/hash-object.c
builtin/log.c
builtin/ls-tree.c
builtin/merge-tree.c
builtin/mktag.c
builtin/mktree.c
builtin/notes.c
builtin/prune.c
builtin/receive-pack.c
builtin/reflog.c
builtin/remote.c
builtin/rev-list.c
builtin/show-ref.c
builtin/tag.c
builtin/unpack-file.c
builtin/unpack-objects.c
builtin/verify-commit.c
bulk-checkin.c
bundle.c
cache-tree.c
cache.h
combine-diff.c
commit.c
config.c
convert.c
diff.c
diffcore-rename.c
dir.c
entry.c
fetch-pack.c
fsck.c
grep.c
list-objects-filter.c
list-objects.c
log-tree.c
mailmap.c
match-trees.c
merge-blobs.c
merge-recursive.c
notes-cache.c
notes-merge.c
notes.c
object-store.h
object.c
pack-bitmap-write.c
packfile.h
read-cache.c
ref-filter.c
refs.c
remote-testsvn.c
remote.c
rerere.c
revision.c
send-pack.c
sequencer.c
shallow.c
submodule-config.c
tag.c
tree-walk.c
tree.c
unpack-trees.c
upload-pack.c
walker.c
xdiff-interface.c