commit: convert register_commit_graft to handle arbitrary repositories
Signed-off-by: Brandon Williams <bmwill@google.com> 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
e808656c46
commit
a3b78e833b
3
commit.h
3
commit.h
@ -174,8 +174,7 @@ struct commit_graft {
|
||||
typedef int (*each_commit_graft_fn)(const struct commit_graft *, void *);
|
||||
|
||||
struct commit_graft *read_graft_line(struct strbuf *line);
|
||||
#define register_commit_graft(r, g, i) register_commit_graft_##r(g, i)
|
||||
int register_commit_graft_the_repository(struct commit_graft *, int);
|
||||
int register_commit_graft(struct repository *r, struct commit_graft *, int);
|
||||
#define lookup_commit_graft(r, o) lookup_commit_graft_##r(o)
|
||||
struct commit_graft *lookup_commit_graft_the_repository(const struct object_id *oid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user