This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,14 @@ public static GitFileStatus ParseStatusMarker(char changeFlag)
134
134
public GitFileStatus IndexStatus => indexStatus ;
135
135
public GitFileStatus WorkTreeStatus => workTreeStatus ;
136
136
137
- public bool Staged => indexStatus != GitFileStatus . None ;
137
+ public bool Staged => indexStatus != GitFileStatus . None && ! Unmerged && ! Untracked && ! Ignored ;
138
138
139
139
public bool Unmerged => ( indexStatus == workTreeStatus && ( indexStatus == GitFileStatus . Added || indexStatus == GitFileStatus . Deleted ) ) ||
140
140
indexStatus == GitFileStatus . Unmerged || workTreeStatus == GitFileStatus . Unmerged ;
141
141
142
+ public bool Untracked => workTreeStatus == GitFileStatus . Untracked ;
143
+ public bool Ignored => workTreeStatus == GitFileStatus . Ignored ;
144
+
142
145
public override string ToString ( )
143
146
{
144
147
return $ "Path:'{ Path } ' Status:'{ Status } ' FullPath:'{ FullPath } ' ProjectPath:'{ ProjectPath } ' OriginalPath:'{ OriginalPath } ' Staged:'{ Staged } ' Unmerged:'{ Unmerged } ' Status:'{ IndexStatus } ' Status:'{ WorkTreeStatus } ' ";
You can’t perform that action at this time.
0 commit comments