diff options
author | Stefan Beller <sbeller@google.com> | 2018-11-14 03:12:58 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-14 11:22:40 +0300 |
commit | 70315373ae51b45b9ca0ac43df396bb9035fe449 (patch) | |
tree | e89acff8d3af8b5e613c8a7dee5c34f3cab4e4b1 /commit.h | |
parent | 07de3fd84049c90d8d873599c43c3979f37166aa (diff) |
commit: prepare repo_unuse_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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -130,7 +130,12 @@ const void *repo_get_commit_buffer(struct repository *r, * from an earlier call to get_commit_buffer. The buffer may or may not be * freed by this call; callers should not access the memory afterwards. */ -void unuse_commit_buffer(const struct commit *, const void *buffer); +void repo_unuse_commit_buffer(struct repository *r, + const struct commit *, + const void *buffer); +#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS +#define unuse_commit_buffer(c, b) repo_unuse_commit_buffer(the_repository, c, b) +#endif /* * Free any cached object buffer associated with the commit. |