Commit da0bb9a
committed
Fix (modify/delete) conflicts in GitAlg.mergeTheirs
`merge --strategy-option=theirs` can fail if a file has been modified on
`HEAD` but deleted on the other branch. Git reports these conflicts as
`CONFLICT (modify/delete)`. This PR resolves them by just removing all
unmerged files which should be the same files that were deleted on the
other branch.
Closes #1393.1 parent 26dab29 commit da0bb9a
File tree
2 files changed
+14
-10
lines changed- modules/core/src
- main/scala/org/scalasteward/core/git
- test/scala/org/scalasteward/core/git
2 files changed
+14
-10
lines changedLines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
170 | 181 | | |
| |||
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 174 | | |
181 | 175 | | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | | - | |
187 | | - | |
| 180 | + | |
188 | 181 | | |
189 | 182 | | |
190 | 183 | | |
| |||
0 commit comments