Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-08 22:37:32 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-09 06:12:36 +0300
commit17bfe87369a726ebf3b1156ffd38c014bbd67e88 (patch)
tree2f3cf7b22d4e8620679f32340a7a83078e043816 /alloc.c
parent13e3fdcb767fe860953f8c27eb1985bd5d15674d (diff)
alloc: add repository argument to alloc_report
This is a small mechanical change; it doesn't change the implementation to handle repositories other than the_repository yet. Use a macro to catch callers passing a repository other than the_repository at compile time. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc.c b/alloc.c
index f031ce422d..28b85b2214 100644
--- a/alloc.c
+++ b/alloc.c
@@ -105,7 +105,7 @@ static void report(const char *name, unsigned int count, size_t size)
#define REPORT(name, type) \
report(#name, name##_state.count, name##_state.count * sizeof(type) >> 10)
-void alloc_report(void)
+void alloc_report_the_repository(void)
{
REPORT(blob, struct blob);
REPORT(tree, struct tree);