mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
packfile: refactor install_packed_git() to work on packfile store
The `install_packed_git()` functions adds a packfile to a specific object store. Refactor it to accept a packfile store instead of a repository to clarify its scope. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
78237ea53d
commit
f6f236d926
@@ -120,6 +120,13 @@ void packfile_store_close(struct packfile_store *store);
|
||||
*/
|
||||
void packfile_store_reprepare(struct packfile_store *store);
|
||||
|
||||
/*
|
||||
* Add the pack to the store so that contained objects become accessible via
|
||||
* the store. This moves ownership into the store.
|
||||
*/
|
||||
void packfile_store_add_pack(struct packfile_store *store,
|
||||
struct packed_git *pack);
|
||||
|
||||
struct pack_window {
|
||||
struct pack_window *next;
|
||||
unsigned char *base;
|
||||
@@ -196,8 +203,6 @@ int for_each_packed_object(struct repository *repo, each_packed_object_fn cb,
|
||||
#define PACKDIR_FILE_GARBAGE 4
|
||||
extern void (*report_garbage)(unsigned seen_bits, const char *path);
|
||||
|
||||
void install_packed_git(struct repository *r, struct packed_git *pack);
|
||||
|
||||
struct packed_git *get_packed_git(struct repository *r);
|
||||
struct list_head *get_packed_git_mru(struct repository *r);
|
||||
struct multi_pack_index *get_multi_pack_index(struct odb_source *source);
|
||||
|
||||
Reference in New Issue
Block a user