mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
Merge pull request #2477 from ethomson/merge
Don't allow conflicts by default
This commit is contained in:
commit
9de6ec5200
@ -2193,8 +2193,7 @@ static int merge_normalize_checkout_opts(
|
|||||||
memcpy(checkout_opts, given_checkout_opts, sizeof(git_checkout_options));
|
memcpy(checkout_opts, given_checkout_opts, sizeof(git_checkout_options));
|
||||||
else {
|
else {
|
||||||
git_checkout_options default_checkout_opts = GIT_CHECKOUT_OPTIONS_INIT;
|
git_checkout_options default_checkout_opts = GIT_CHECKOUT_OPTIONS_INIT;
|
||||||
default_checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE |
|
default_checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
|
||||||
GIT_CHECKOUT_ALLOW_CONFLICTS;
|
|
||||||
|
|
||||||
memcpy(checkout_opts, &default_checkout_opts, sizeof(git_checkout_options));
|
memcpy(checkout_opts, &default_checkout_opts, sizeof(git_checkout_options));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user