diff options
author | Stefan Beller <sbeller@google.com> | 2018-05-18 00:51:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-18 01:13:10 +0200 |
commit | b9dbddf6dace2094061d5093743f29c100cfd534 (patch) | |
tree | 4c2143fa3129fc1d9e9f2d138b60c4ba419c93af /commit.h | |
parent | commit: allow prepare_commit_graft to handle arbitrary repositories (diff) | |
download | git-b9dbddf6dace2094061d5093743f29c100cfd534.tar.xz git-b9dbddf6dace2094061d5093743f29c100cfd534.zip |
commit: allow lookup_commit_graft 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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -175,8 +175,7 @@ typedef int (*each_commit_graft_fn)(const struct commit_graft *, void *); struct commit_graft *read_graft_line(struct strbuf *line); 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); +struct commit_graft *lookup_commit_graft(struct repository *r, const struct object_id *oid); extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2); extern struct commit_list *get_merge_bases_many(struct commit *one, int n, struct commit **twos); |