summaryrefslogtreecommitdiffstats
path: root/packfile.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 18:45:23 +0100
committerJunio C Hamano <gitster@pobox.com>2018-03-26 19:07:43 +0200
commit0f90a9f27e464caffe69c5ab9e4d744b53bad143 (patch)
tree5f88ceafc720944e3e19d32d9da2d734fea251d3 /packfile.h
parentpackfile: allow prepare_packed_git_one to handle arbitrary repositories (diff)
downloadgit-0f90a9f27e464caffe69c5ab9e4d744b53bad143.tar.xz
git-0f90a9f27e464caffe69c5ab9e4d744b53bad143.zip
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 ab5046938c..3fd9092472 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);