Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-16 02:42:15 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-16 05:42:03 +0300
commitcbd53a2193d11e83b5bad2c3514bd1603074bc36 (patch)
tree6bbac3f93ec8f2368467c22084522163ae635ad7 /tree.c
parent14ba97f81c7b94e10d591b363688a073023f332d (diff)
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>
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tree.c b/tree.c
index 8f8ef3189a..dc20a2693f 100644
--- a/tree.c
+++ b/tree.c
@@ -2,6 +2,7 @@
#include "cache.h"
#include "cache-tree.h"
#include "tree.h"
+#include "object-store.h"
#include "blob.h"
#include "commit.h"
#include "tag.h"