summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-11-14 00:12:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-14 08:22:40 (GMT)
commit07de3fd84049c90d8d873599c43c3979f37166aa (patch)
treeda5873027b3ba52fe7dd9beb878240c60c45bfbc /commit.h
parent4d5430f7479d45c3fca088984a08ec093f870b5b (diff)
downloadgit-07de3fd84049c90d8d873599c43c3979f37166aa.zip
git-07de3fd84049c90d8d873599c43c3979f37166aa.tar.gz
git-07de3fd84049c90d8d873599c43c3979f37166aa.tar.bz2
commit: prepare get_commit_buffer to handle any repo
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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 08935f9..591a77a 100644
--- a/commit.h
+++ b/commit.h
@@ -117,7 +117,12 @@ const void *get_cached_commit_buffer(struct repository *, const struct commit *,
* from disk. The resulting memory should not be modified, and must be given
* to unuse_commit_buffer when the caller is done.
*/
-const void *get_commit_buffer(const struct commit *, unsigned long *size);
+const void *repo_get_commit_buffer(struct repository *r,
+ const struct commit *,
+ unsigned long *size);
+#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
+#define get_commit_buffer(c, s) repo_get_commit_buffer(the_repository, c, s)
+#endif
/*
* Tell the commit subsytem that we are done with a particular commit buffer.