Commit 96d799aa by Edward Thomson

checkout rename conflicts

rename conflict tests for checkout conflicts, don't suffix filenames
when checking out with USE_OURS or USE_THEIRS
parent 4f7897ab
......@@ -395,7 +395,10 @@ static int checkout_write_entry(
if (git_buf_puts(&data->path, side->path) < 0)
return -1;
if (conflict->name_collision || conflict->directoryfile) {
if ((conflict->name_collision || conflict->directoryfile) &&
(data->strategy & GIT_CHECKOUT_USE_OURS) == 0 &&
(data->strategy & GIT_CHECKOUT_USE_THEIRS) == 0) {
if (side == conflict->ours)
side_label = data->opts.our_label ? data->opts.our_label :
"ours";
......
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