mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-08 12:25:00 +00:00
feature: show conflict reason
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
3437f5f4a9
commit
fbc8edcc13
4 changed files with 108 additions and 4 deletions
|
@ -22,6 +22,18 @@ namespace SourceGit.Models
|
|||
Conflicted,
|
||||
}
|
||||
|
||||
public enum ConflictReason
|
||||
{
|
||||
None,
|
||||
BothDeleted,
|
||||
AddedByUs,
|
||||
DeletedByThem,
|
||||
AddedByThem,
|
||||
DeletedByUs,
|
||||
BothAdded,
|
||||
BothModified,
|
||||
}
|
||||
|
||||
public class ChangeDataForAmend
|
||||
{
|
||||
public string FileMode { get; set; } = "";
|
||||
|
@ -36,6 +48,8 @@ namespace SourceGit.Models
|
|||
public string Path { get; set; } = "";
|
||||
public string OriginalPath { get; set; } = "";
|
||||
public ChangeDataForAmend DataForAmend { get; set; } = null;
|
||||
public ConflictReason ConflictReason { get; set; } = ConflictReason.None;
|
||||
public bool IsSubmodule { get; set; } = false;
|
||||
public bool IsConflicted => WorkTree == ChangeState.Conflicted;
|
||||
|
||||
public void Set(ChangeState index, ChangeState workTree = ChangeState.None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue