aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-08 12:37:27 -0700
committerJunio C Hamano <gitster@pobox.com>2018-05-09 12:12:36 +0900
commitf0de1d62ae5982630cfb2c713ddcda853b9ee0cf (patch)
tree04da14d0955eadeb45ea7659cf86d11519540b19 /cache.h
parentc077a4526ba456ada28d16db9c945afd9a4a57de (diff)
downloadgit-f0de1d62ae5982630cfb2c713ddcda853b9ee0cf.tar.gz
alloc: add repository argument to alloc_blob_node
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 3a4d80e92b..2258e61127 100644
--- a/cache.h
+++ b/cache.h
@@ -1764,7 +1764,8 @@ int decode_85(char *dst, const char *line, int linelen);
void encode_85(char *buf, const unsigned char *data, int bytes);
/* alloc.c */
-extern void *alloc_blob_node(void);
+#define alloc_blob_node(r) alloc_blob_node_##r()
+extern void *alloc_blob_node_the_repository(void);
extern void *alloc_tree_node(void);
extern void *alloc_commit_node(void);
extern void *alloc_tag_node(void);