Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-01-07 22:45:38 +0400
committernulltoken <emeric.fermas@gmail.com>2013-01-07 22:59:23 +0400
commit4d7c2ad597e3283830ec4a65b2f711eea3d9ef1f (patch)
tree97aaf9d3d0cc002d4fb70e5cd601613bf0788b09 /LibGit2Sharp/Diff.cs
parentfef50c171f557ef88bec8fd9bd1cf05d8fe5b5aa (diff)
Rename Enum.Has<T> to Compat.Enum.HasFlag<T>
Diffstat (limited to 'LibGit2Sharp/Diff.cs')
-rw-r--r--LibGit2Sharp/Diff.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/LibGit2Sharp/Diff.cs b/LibGit2Sharp/Diff.cs
index 17a3323a..8ea28276 100644
--- a/LibGit2Sharp/Diff.cs
+++ b/LibGit2Sharp/Diff.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO;
using LibGit2Sharp.Core;
+using LibGit2Sharp.Core.Compat;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp
@@ -21,7 +22,7 @@ namespace LibGit2Sharp
{
var options = new GitDiffOptions();
- if (diffOptions.Has(DiffOptions.IncludeUntracked))
+ if (diffOptions.HasFlag(DiffOptions.IncludeUntracked))
{
options.Flags |= GitDiffOptionFlags.GIT_DIFF_INCLUDE_UNTRACKED |
GitDiffOptionFlags.GIT_DIFF_RECURSE_UNTRACKED_DIRS |
@@ -181,7 +182,7 @@ namespace LibGit2Sharp
{
var comparer = handleRetrieverDispatcher[diffTargets](repo);
- DiffOptions diffOptions = diffTargets.Has(DiffTargets.WorkingDirectory) ?
+ DiffOptions diffOptions = diffTargets.HasFlag(DiffTargets.WorkingDirectory) ?
DiffOptions.IncludeUntracked : DiffOptions.None;
using (GitDiffOptions options = BuildOptions(diffOptions, paths))