summaryrefslogtreecommitdiff
path: root/pack-revindex.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-01-13 22:25:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-14 05:53:48 (GMT)
commitd5bc7c60c72ee239b5c5d3e4aa808d29412f78d8 (patch)
tree714d05d29b0748279e434194abc6b3e7c8c6d4e3 /pack-revindex.c
parent8389855a9b97c7447383e9938730d24054f33831 (diff)
downloadgit-d5bc7c60c72ee239b5c5d3e4aa808d29412f78d8.zip
git-d5bc7c60c72ee239b5c5d3e4aa808d29412f78d8.tar.gz
git-d5bc7c60c72ee239b5c5d3e4aa808d29412f78d8.tar.bz2
pack-revindex: hide the definition of 'revindex_entry'
Now that all spots outside of pack-revindex.c that reference 'struct revindex_entry' directly have been removed, it is safe to hide the implementation by moving it from pack-revindex.h to pack-revindex.c. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-revindex.c')
-rw-r--r--pack-revindex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pack-revindex.c b/pack-revindex.c
index 282fe92..a508d5f 100644
--- a/pack-revindex.c
+++ b/pack-revindex.c
@@ -3,6 +3,11 @@
#include "object-store.h"
#include "packfile.h"
+struct revindex_entry {
+ off_t offset;
+ unsigned int nr;
+};
+
/*
* Pack index for existing packs give us easy access to the offsets into
* corresponding pack file where each object's data starts, but the entries