mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-07 11:54:59 +00:00
fix: using theirs
or mine
does not work if it is deleted by ours or theirs
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
75015d550c
commit
60cd210b80
1 changed files with 4 additions and 2 deletions
|
@ -388,7 +388,8 @@ namespace SourceGit.ViewModels
|
|||
if (!change.IsConflicted)
|
||||
continue;
|
||||
|
||||
if (change.WorkTree == Models.ChangeState.Deleted)
|
||||
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
||||
change.ConflictReason == Models.ConflictReason.DeletedByThem)
|
||||
{
|
||||
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
||||
if (File.Exists(fullpath))
|
||||
|
@ -430,7 +431,8 @@ namespace SourceGit.ViewModels
|
|||
if (!change.IsConflicted)
|
||||
continue;
|
||||
|
||||
if (change.Index == Models.ChangeState.Deleted)
|
||||
if (change.ConflictReason == Models.ConflictReason.BothDeleted ||
|
||||
change.ConflictReason == Models.ConflictReason.DeletedByUs)
|
||||
{
|
||||
var fullpath = Path.Combine(_repo.FullPath, change.Path);
|
||||
if (File.Exists(fullpath))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue