diff options
author | Brandon Williams <bmwill@google.com> | 2018-05-17 22:51:48 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-17 23:13:10 (GMT) |
commit | a3b78e833b06f4bfdef8c4d70d4d269226bebd09 (patch) | |
tree | d9ecbf4ba0988e1e8a60a3eede531ee5af7e8077 /commit.h | |
parent | e808656c46e9d0e2e446b304a6f4d1f7dd0b25b5 (diff) | |
download | git-a3b78e833b06f4bfdef8c4d70d4d269226bebd09.zip git-a3b78e833b06f4bfdef8c4d70d4d269226bebd09.tar.gz git-a3b78e833b06f4bfdef8c4d70d4d269226bebd09.tar.bz2 |
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>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |