summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 17:45:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 17:07:43 (GMT)
commit0f90a9f27e464caffe69c5ab9e4d744b53bad143 (patch)
tree5f88ceafc720944e3e19d32d9da2d734fea251d3 /packfile.h
parent935cdd6922e40f5812cdcf2741d274ab2fc110a6 (diff)
downloadgit-0f90a9f27e464caffe69c5ab9e4d744b53bad143.zip
git-0f90a9f27e464caffe69c5ab9e4d744b53bad143.tar.gz
git-0f90a9f27e464caffe69c5ab9e4d744b53bad143.tar.bz2
packfile: allow prepare_packed_git to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> 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 'packfile.h')
-rw-r--r--packfile.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/packfile.h b/packfile.h
index ab50469..3fd9092 100644
--- a/packfile.h
+++ b/packfile.h
@@ -34,8 +34,7 @@ extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_
#define PACKDIR_FILE_GARBAGE 4
extern void (*report_garbage)(unsigned seen_bits, const char *path);
-#define prepare_packed_git(r) prepare_packed_git_##r()
-extern void prepare_packed_git_the_repository(void);
+extern void prepare_packed_git(struct repository *r);
#define reprepare_packed_git(r) reprepare_packed_git_##r()
extern void reprepare_packed_git_the_repository(void);
extern void install_packed_git(struct repository *r, struct packed_git *pack);