diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-04-06 13:34:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-08 10:26:32 +0200 |
commit | 5038de19377ccc334c0ce3e1f206dddc20ac88c1 (patch) | |
tree | eef5f36964f6ebe9f07760c89876f6cbc0d1bc4a /packfile.h | |
parent | builtin rebase: use oideq() (diff) | |
download | git-5038de19377ccc334c0ce3e1f206dddc20ac88c1.tar.xz git-5038de19377ccc334c0ce3e1f206dddc20ac88c1.zip |
packfile.c: add repo_approximate_object_count()
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packfile.h b/packfile.h index d70c6d9afb..f04440f984 100644 --- a/packfile.h +++ b/packfile.h @@ -57,7 +57,8 @@ struct packed_git *get_all_packs(struct repository *r); * Give a rough count of objects in the repository. This sacrifices accuracy * for speed. */ -unsigned long approximate_object_count(void); +unsigned long repo_approximate_object_count(struct repository *r); +#define approximate_object_count() repo_approximate_object_count(the_repository) extern struct packed_git *find_sha1_pack(const unsigned char *sha1, struct packed_git *packs); |