summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 01:22:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-29 17:43:40 (GMT)
commit1a40fc4509fb5369f089ed8774871e5e6974d3c2 (patch)
treec86613d2c602c58f0700a95f3731026743e66ab3 /commit.h
parent65ea9d4bec141295d34955b286c32725fe3b422d (diff)
downloadgit-1a40fc4509fb5369f089ed8774871e5e6974d3c2.zip
git-1a40fc4509fb5369f089ed8774871e5e6974d3c2.tar.gz
git-1a40fc4509fb5369f089ed8774871e5e6974d3c2.tar.bz2
commit.c: allow set_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 bea5e01..7297af4 100644
--- a/commit.h
+++ b/commit.h
@@ -97,8 +97,7 @@ void free_commit_buffer_slab(struct buffer_slab *bs);
* Associate an object buffer with the commit. The ownership of the
* memory is handed over to the commit, and must be free()-able.
*/
-#define set_commit_buffer(r, c, b, s) set_commit_buffer_##r(c, b, s)
-void set_commit_buffer_the_repository(struct commit *, void *buffer, unsigned long size);
+void set_commit_buffer(struct repository *r, struct commit *, void *buffer, unsigned long size);
/*
* Get any cached object buffer associated with the commit. Returns NULL