summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 01:22:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-29 17:43:40 (GMT)
commitfd8030c739522acf3f55879b29f4716b36f4d440 (patch)
treedb9a948336b55cbfd7b98e57d18b478bbaf05012 /commit.h
parent84f80cd2db5daa71a68df9a71c13524700a4edc7 (diff)
downloadgit-fd8030c739522acf3f55879b29f4716b36f4d440.zip
git-fd8030c739522acf3f55879b29f4716b36f4d440.tar.gz
git-fd8030c739522acf3f55879b29f4716b36f4d440.tar.bz2
commit.c: allow parse_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 27888d8..e9cb5aa 100644
--- a/commit.h
+++ b/commit.h
@@ -81,8 +81,7 @@ struct commit *lookup_commit_reference_by_name(const char *name);
*/
struct commit *lookup_commit_or_die(const struct object_id *oid, const char *ref_name);
-#define parse_commit_buffer(r, i, b, s, g) parse_commit_buffer_##r(i, b, s, g)
-int parse_commit_buffer_the_repository(struct commit *item, const void *buffer, unsigned long size, int check_graph);
+int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size, int check_graph);
int parse_commit_gently(struct commit *item, int quiet_on_missing);
static inline int parse_commit(struct commit *item)
{