summary refs log tree commit diff
path: root/packfile.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-04-06 18:34:23 +0700
committerJunio C Hamano <gitster@pobox.com>2019-04-08 17:26:32 +0900
commit5038de19377ccc334c0ce3e1f206dddc20ac88c1 (patch)
treeeef5f36964f6ebe9f07760c89876f6cbc0d1bc4a /packfile.h
parentd2c4e6292a29b9c59a11aa342ea168d4accf0ac2 (diff)
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.h3
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);