summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 01:22:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-29 17:43:40 (GMT)
commit4ff7e5c9362875b2296fd2e289dba487a38609f0 (patch)
tree2e6cd6f4189ea0bfdd3ad3e6c8d11b7c6033efc2 /commit.h
parent1a40fc4509fb5369f089ed8774871e5e6974d3c2 (diff)
downloadgit-4ff7e5c9362875b2296fd2e289dba487a38609f0.zip
git-4ff7e5c9362875b2296fd2e289dba487a38609f0.tar.gz
git-4ff7e5c9362875b2296fd2e289dba487a38609f0.tar.bz2
commit.c: allow get_cached_commit_buffer to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/commit.h b/commit.h
index 7297af4..d61585d 100644
--- a/commit.h
+++ b/commit.h
@@ -103,8 +103,7 @@ void set_commit_buffer(struct repository *r, struct commit *, void *buffer, unsi
* Get any cached object buffer associated with the commit. Returns NULL
* if none. The resulting memory should not be freed.
*/
-#define get_cached_commit_buffer(r, c, s) get_cached_commit_buffer_##r(c, s)
-const void *get_cached_commit_buffer_the_repository(const struct commit *, unsigned long *size);
+const void *get_cached_commit_buffer(struct repository *, const struct commit *, unsigned long *size);
/*
* Get the commit's object contents, either from cache or by reading the object