mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-07 11:54:59 +00:00
fix: USE THEIRS
for AU
conflict and USE MINE
for UA
conflict
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
f1052c3efc
commit
7b05b011aa
1 changed files with 4 additions and 2 deletions
|
@ -389,7 +389,8 @@ namespace SourceGit.ViewModels
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
||||||
change.ConflictReason == Models.ConflictReason.DeletedByThem)
|
change.ConflictReason == Models.ConflictReason.DeletedByThem ||
|
||||||
|
change.ConflictReason == Models.ConflictReason.AddedByUs)
|
||||||
{
|
{
|
||||||
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
||||||
if (File.Exists(fullpath))
|
if (File.Exists(fullpath))
|
||||||
|
@ -432,7 +433,8 @@ namespace SourceGit.ViewModels
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
||||||
change.ConflictReason == Models.ConflictReason.DeletedByUs)
|
change.ConflictReason == Models.ConflictReason.DeletedByUs ||
|
||||||
|
change.ConflictReason == Models.ConflictReason.AddedByThem)
|
||||||
{
|
{
|
||||||
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
||||||
if (File.Exists(fullpath))
|
if (File.Exists(fullpath))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue