mirror of
https://github.com/git/git.git
synced 2025-01-23 16:03:32 +08:00
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>
This commit is contained in:
parent
8389855a9b
commit
d5bc7c60c7
@ -3,6 +3,11 @@
|
|||||||
#include "object-store.h"
|
#include "object-store.h"
|
||||||
#include "packfile.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
|
* 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
|
* corresponding pack file where each object's data starts, but the entries
|
||||||
|
@ -18,11 +18,6 @@
|
|||||||
|
|
||||||
struct packed_git;
|
struct packed_git;
|
||||||
|
|
||||||
struct revindex_entry {
|
|
||||||
off_t offset;
|
|
||||||
unsigned int nr;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* load_pack_revindex populates the revindex's internal data-structures for the
|
* load_pack_revindex populates the revindex's internal data-structures for the
|
||||||
* given pack, returning zero on success and a negative value otherwise.
|
* given pack, returning zero on success and a negative value otherwise.
|
||||||
|
Loading…
Reference in New Issue
Block a user