summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-15 23:42:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-16 02:42:03 (GMT)
commitcbd53a2193d11e83b5bad2c3514bd1603074bc36 (patch)
tree6bbac3f93ec8f2368467c22084522163ae635ad7 /packfile.h
parent14ba97f81c7b94e10d591b363688a073023f332d (diff)
downloadgit-cbd53a2193d11e83b5bad2c3514bd1603074bc36.zip
git-cbd53a2193d11e83b5bad2c3514bd1603074bc36.tar.gz
git-cbd53a2193d11e83b5bad2c3514bd1603074bc36.tar.bz2
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 'packfile.h')
-rw-r--r--packfile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h
index fdfddb8..1abbc2c 100644
--- a/packfile.h
+++ b/packfile.h
@@ -3,6 +3,11 @@
#include "oidset.h"
+/* in object-store.h */
+struct packed_git;
+struct object_info;
+enum object_type;
+
/*
* Generate the filename to be used for a pack file with checksum "sha1" and
* extension "ext". The result is written into the strbuf "buf", overwriting