diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-01-12 02:13:23 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-14 20:13:04 (GMT) |
commit | 1d18d7581cf1ce45314b7ed58e52d5cc73b2e7a7 (patch) | |
tree | f01d372d987558abf669453dbeebea7a7e220107 /sequencer.c | |
parent | dba093ddc0341a85f576bbd5227d393a820d930a (diff) | |
download | git-1d18d7581cf1ce45314b7ed58e52d5cc73b2e7a7.zip git-1d18d7581cf1ce45314b7ed58e52d5cc73b2e7a7.tar.gz git-1d18d7581cf1ce45314b7ed58e52d5cc73b2e7a7.tar.bz2 |
notes-utils.c: remove the_repository references
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sequencer.c b/sequencer.c index b68bca0..1a92a5d 100644 --- a/sequencer.c +++ b/sequencer.c @@ -1115,7 +1115,8 @@ static int run_rewrite_hook(const struct object_id *oldoid, return finish_command(&proc); } -void commit_post_rewrite(const struct commit *old_head, +void commit_post_rewrite(struct repository *r, + const struct commit *old_head, const struct object_id *new_head) { struct notes_rewrite_cfg *cfg; @@ -1124,7 +1125,7 @@ void commit_post_rewrite(const struct commit *old_head, if (cfg) { /* we are amending, so old_head is not NULL */ copy_note_for_rewrite(cfg, &old_head->object.oid, new_head); - finish_copy_notes_for_rewrite(cfg, "Notes added by 'git commit --amend'"); + finish_copy_notes_for_rewrite(r, cfg, "Notes added by 'git commit --amend'"); } run_rewrite_hook(&old_head->object.oid, new_head); } @@ -1405,7 +1406,7 @@ static int try_to_commit(struct repository *r, } if (flags & AMEND_MSG) - commit_post_rewrite(current_head, oid); + commit_post_rewrite(r, current_head, oid); out: free_commit_extra_headers(extra); |