summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 17:45:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-26 17:07:43 (GMT)
commit4c2a13b4e29f826dcbe0797beb64071fa61e531f (patch)
tree00d465066a67fd5aec3162df613d340a2a136b72 /packfile.h
parent0f90a9f27e464caffe69c5ab9e4d744b53bad143 (diff)
downloadgit-4c2a13b4e29f826dcbe0797beb64071fa61e531f.zip
git-4c2a13b4e29f826dcbe0797beb64071fa61e531f.tar.gz
git-4c2a13b4e29f826dcbe0797beb64071fa61e531f.tar.bz2
packfile: allow reprepare_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 3fd9092..ee6da3a 100644
--- a/packfile.h
+++ b/packfile.h
@@ -35,8 +35,7 @@ extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_
extern void (*report_garbage)(unsigned seen_bits, const char *path);
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 reprepare_packed_git(struct repository *r);
extern void install_packed_git(struct repository *r, struct packed_git *pack);
struct packed_git *get_packed_git(struct repository *r);