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>
This commit is contained in:

committed by
Junio C Hamano

parent
84f80cd2db
commit
fd8030c739
3
commit.h
3
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user