fix: USE THEIRS for AU conflict and USE MINE for UA conflict
Some checks are pending
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-02 13:03:38 +08:00
parent f1052c3efc
commit 7b05b011aa
No known key found for this signature in database

View file

@ -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))