]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pack-revindex: hide the definition of 'revindex_entry'
authorTaylor Blau <me@ttaylorr.com>
Wed, 13 Jan 2021 22:25:06 +0000 (17:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2021 05:53:48 +0000 (21:53 -0800)
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>
pack-revindex.c
pack-revindex.h

index 282fe9264050b834c0e580b82e0eca4f54de6366..a508d5f0a4df27c53b2271aaff4dceb242cecd45 100644 (file)
@@ -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
index 746776be7f6bc3bdea0626a05b6a48b9b9fc4525..6e0320b08b54aee2d636f87d6cd1af304d7fe58b 100644 (file)
 
 struct packed_git;
 
-struct revindex_entry {
-       off_t offset;
-       unsigned int nr;
-};
-
 /*
  * load_pack_revindex populates the revindex's internal data-structures for the
  * given pack, returning zero on success and a negative value otherwise.