We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8effe57 commit 2539d17Copy full SHA for 2539d17
LibGit2Sharp/StatusEntry.cs
@@ -1,6 +1,7 @@
1
using System;
2
using System.Diagnostics;
3
using LibGit2Sharp.Core;
4
+using LibGit2Sharp.Core.Compat;
5
6
namespace LibGit2Sharp
7
{
@@ -99,5 +100,21 @@ private string DebuggerDisplay
99
100
101
get { return string.Format("{0}: {1}", State, FilePath); }
102
}
103
+
104
+ public static readonly FileStatus StagedStatuses =
105
+ FileStatus.Added |
106
+ FileStatus.Staged |
107
+ FileStatus.Removed |
108
+ FileStatus.StagedTypeChange |
109
+ FileStatus.Renamed;
110
111
+ public bool IsStaged
112
+ {
113
+ get
114
115
+ return StagedStatuses.HasFlag(State);
116
117
+ }
118
119
120
0 commit comments