Commit caaa1fdf by Peter Pettersson

merge: change enum GIT_MERGE_FILE_FAVOR__CONFLICTED to flag

GIT_MERGE_FILE__CONFLICTED

This is to avoid a possible problem where the value is set to the
same as GIT_MERGE_FILE_SIMPLIFY_ALNUM in git_merge_file_flag_t
parent d9863fc1
...@@ -2120,7 +2120,7 @@ int git_merge__iterators( ...@@ -2120,7 +2120,7 @@ int git_merge__iterators(
file_opts.ancestor_label = "merged common ancestors"; file_opts.ancestor_label = "merged common ancestors";
file_opts.our_label = "Temporary merge branch 1"; file_opts.our_label = "Temporary merge branch 1";
file_opts.their_label = "Temporary merge branch 2"; file_opts.their_label = "Temporary merge branch 2";
file_opts.flags |= GIT_MERGE_FILE_FAVOR__CONFLICTED; file_opts.flags |= GIT_MERGE_FILE__CONFLICTED;
file_opts.marker_size = GIT_MERGE_CONFLICT_MARKER_SIZE + 2; file_opts.marker_size = GIT_MERGE_CONFLICT_MARKER_SIZE + 2;
} }
......
...@@ -34,7 +34,7 @@ enum { ...@@ -34,7 +34,7 @@ enum {
enum { enum {
/** Accept the conflict file, staging it as the merge result. */ /** Accept the conflict file, staging it as the merge result. */
GIT_MERGE_FILE_FAVOR__CONFLICTED = 4 GIT_MERGE_FILE__CONFLICTED = (1 << 30)
}; };
......
...@@ -93,7 +93,7 @@ int git_merge_driver__builtin_apply( ...@@ -93,7 +93,7 @@ int git_merge_driver__builtin_apply(
goto done; goto done;
if (!result.automergeable && if (!result.automergeable &&
!(file_opts.flags & GIT_MERGE_FILE_FAVOR__CONFLICTED)) { !(file_opts.flags & GIT_MERGE_FILE__CONFLICTED)) {
error = GIT_EMERGECONFLICT; error = GIT_EMERGECONFLICT;
goto done; goto done;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment