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>

Taylor Blau committed Jan 13, 2021 at 17:25 UTC d5bc7c60c72ee239b5c5d3e4aa808d29412f78d8
2 files changed +5 -5
pack-revindex.c
+5
@@ -3,6 +3,11 @@
3 #include "object-store.h"
4 #include "packfile.h"
5
6 +struct revindex_entry {
7 + off_t offset;
8 + unsigned int nr;
9 +};
10 +
11 /*
12 * Pack index for existing packs give us easy access to the offsets into
13 * corresponding pack file where each object's data starts, but the entries
pack-revindex.h
-5
@@ -18,11 +18,6 @@
18
19 struct packed_git;
20
21 -struct revindex_entry {
22 - off_t offset;
23 - unsigned int nr;
24 -};
25 -
21 /*
22 * load_pack_revindex populates the revindex's internal data-structures for the
23 * given pack, returning zero on success and a negative value otherwise.