summaryrefslogtreecommitdiff
path: root/pack-objects.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-10 05:49:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-12 05:50:06 (GMT)
commit7c14112741b81366cfbbc3b98e0b92422fcce83d (patch)
tree25ea81f5000e4f9cdf5b80b39c00a1021c917188 /pack-objects.h
parent94e10825bd72660548956a6d5fb260642ffb6386 (diff)
downloadgit-7c14112741b81366cfbbc3b98e0b92422fcce83d.zip
git-7c14112741b81366cfbbc3b98e0b92422fcce83d.tar.gz
git-7c14112741b81366cfbbc3b98e0b92422fcce83d.tar.bz2
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>
Diffstat (limited to 'pack-objects.h')
-rw-r--r--pack-objects.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pack-objects.h b/pack-objects.h
index 86ee93f..9e6af3f 100644
--- a/pack-objects.h
+++ b/pack-objects.h
@@ -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)
{