diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-09-21 15:57:29 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-21 16:48:10 (GMT) |
commit | 7e196c3a28513225d48bd853846f5618419948c1 (patch) | |
tree | e8be0a92c2579f94a87a45d71d2525d723fd3812 /builtin/merge.c | |
parent | f4a55b27977aeaddbfb73041be26701bcd3868a5 (diff) | |
download | git-7e196c3a28513225d48bd853846f5618419948c1.zip git-7e196c3a28513225d48bd853846f5618419948c1.tar.gz git-7e196c3a28513225d48bd853846f5618419948c1.tar.bz2 |
merge.c: remove implicit dependency on the_index
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 'builtin/merge.c')
-rw-r--r-- | builtin/merge.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index 592cb19..5f79fc5 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -728,8 +728,9 @@ static int try_merge_strategy(const char *strategy, struct commit_list *common, die(_("unable to write %s"), get_index_file()); return clean ? 0 : 1; } else { - return try_merge_command(strategy, xopts_nr, xopts, - common, head_arg, remoteheads); + return try_merge_command(the_repository, + strategy, xopts_nr, xopts, + common, head_arg, remoteheads); } } @@ -1470,7 +1471,8 @@ int cmd_merge(int argc, const char **argv, const char *prefix) goto done; } - if (checkout_fast_forward(&head_commit->object.oid, + if (checkout_fast_forward(the_repository, + &head_commit->object.oid, &commit->object.oid, overwrite_ignore)) { ret = 1; |