Skip to content

Commit d5bc7c6

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8389855 commit d5bc7c6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pack-revindex.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
#include "object-store.h"
44
#include "packfile.h"
55

6+
struct revindex_entry {
7+
off_t offset;
8+
unsigned int nr;
9+
};
10+
611
/*
712
* Pack index for existing packs give us easy access to the offsets into
813
* corresponding pack file where each object's data starts, but the entries

pack-revindex.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818

1919
struct packed_git;
2020

21-
struct revindex_entry {
22-
off_t offset;
23-
unsigned int nr;
24-
};
25-
2621
/*
2722
* load_pack_revindex populates the revindex's internal data-structures for the
2823
* given pack, returning zero on success and a negative value otherwise.

0 commit comments

Comments
 (0)