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>
This commit is contained in:
committed by
Junio C Hamano
parent
d2c4e6292a
commit
5038de1937
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user