Skip to content

Commit 88e2ceb

Browse files
author
Vicent Marti
committed
Merge pull request #549 from libgit2/brianmario/recursive-merge
Add support for new GIT_MERGE_NO_RECURSIVE option for merges
2 parents 214df9f + cd76fc5 commit 88e2ceb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ext/rugged/rugged_tree.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,15 +614,19 @@ void rugged_parse_merge_options(git_merge_options *opts, VALUE rb_options)
614614
}
615615

616616
if (RTEST(rb_hash_aref(rb_options, CSTR2SYM("renames")))) {
617-
opts->tree_flags |= GIT_MERGE_TREE_FIND_RENAMES;
617+
opts->flags |= GIT_MERGE_FIND_RENAMES;
618618
}
619619

620620
if (RTEST(rb_hash_aref(rb_options, CSTR2SYM("fail_on_conflict")))) {
621-
opts->tree_flags |= GIT_MERGE_TREE_FAIL_ON_CONFLICT;
621+
opts->flags |= GIT_MERGE_FAIL_ON_CONFLICT;
622622
}
623623

624624
if (RTEST(rb_hash_aref(rb_options, CSTR2SYM("skip_reuc")))) {
625-
opts->tree_flags |= GIT_MERGE_TREE_SKIP_REUC;
625+
opts->flags |= GIT_MERGE_SKIP_REUC;
626+
}
627+
628+
if (RTEST(rb_hash_aref(rb_options, CSTR2SYM("no_recursive")))) {
629+
opts->flags |= GIT_MERGE_NO_RECURSIVE;
626630
}
627631
}
628632
}

vendor/libgit2

Submodule libgit2 updated 249 files

0 commit comments

Comments
 (0)