mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
pack-*.c: remove the_repository references
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
94e10825bd
commit
7c14112741
@@ -5,6 +5,8 @@
|
||||
#include "thread-utils.h"
|
||||
#include "pack.h"
|
||||
|
||||
struct repository;
|
||||
|
||||
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
|
||||
|
||||
#define OE_DFS_STATE_BITS 2
|
||||
@@ -127,6 +129,7 @@ struct object_entry {
|
||||
};
|
||||
|
||||
struct packing_data {
|
||||
struct repository *repo;
|
||||
struct object_entry *objects;
|
||||
uint32_t nr_objects, nr_alloc;
|
||||
|
||||
@@ -165,7 +168,7 @@ struct packing_data {
|
||||
unsigned char *layer;
|
||||
};
|
||||
|
||||
void prepare_packing_data(struct packing_data *pdata);
|
||||
void prepare_packing_data(struct repository *r, struct packing_data *pdata);
|
||||
|
||||
static inline void packing_data_lock(struct packing_data *pdata)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user