summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-08 19:37:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-09 03:12:36 (GMT)
commit17bfe87369a726ebf3b1156ffd38c014bbd67e88 (patch)
tree2f3cf7b22d4e8620679f32340a7a83078e043816 /cache.h
parent13e3fdcb767fe860953f8c27eb1985bd5d15674d (diff)
downloadgit-17bfe87369a726ebf3b1156ffd38c014bbd67e88.zip
git-17bfe87369a726ebf3b1156ffd38c014bbd67e88.tar.gz
git-17bfe87369a726ebf3b1156ffd38c014bbd67e88.tar.bz2
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 'cache.h')
-rw-r--r--cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 2d60359..01cc207 100644
--- a/cache.h
+++ b/cache.h
@@ -1774,7 +1774,8 @@ extern void *alloc_commit_node_the_repository(void);
extern void *alloc_tag_node_the_repository(void);
#define alloc_object_node(r) alloc_object_node_##r()
extern void *alloc_object_node_the_repository(void);
-extern void alloc_report(void);
+#define alloc_report(r) alloc_report_##r()
+extern void alloc_report_the_repository(void);
extern unsigned int alloc_commit_index(void);
/* pkt-line.c */