diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-10-14 15:38:45 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-10-14 15:38:45 +0400 |
commit | 890af74b03e25dbee85348a13e1eab52ec289c5c (patch) | |
tree | aa5b2af77ffd812ac990c24a7b4609aa50b649bd /LibGit2Sharp/RepositoryStatus.cs | |
parent | a1fed6ccd7deca397c1801c773ef90f291440a71 (diff) |
Add EnumExtensions to help checking whether a flag is set
Diffstat (limited to 'LibGit2Sharp/RepositoryStatus.cs')
-rw-r--r-- | LibGit2Sharp/RepositoryStatus.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/RepositoryStatus.cs b/LibGit2Sharp/RepositoryStatus.cs index d0863634..ec2e196e 100644 --- a/LibGit2Sharp/RepositoryStatus.cs +++ b/LibGit2Sharp/RepositoryStatus.cs @@ -48,7 +48,7 @@ namespace LibGit2Sharp foreach (KeyValuePair<FileStatus, Action<RepositoryStatus, string>> kvp in dispatcher) { - if ((gitStatus & kvp.Key) != kvp.Key) + if (!gitStatus.Has(kvp.Key)) { continue; } |