diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-08-25 09:58:18 +0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-08-25 09:58:18 +0400 |
commit | 885de34f544478ec005dce3d5b5ea5a72d1c7457 (patch) | |
tree | e365b5c8a2493c2ecf668a1f484821e73ccb1903 /LibGit2Sharp/Diff.cs | |
parent | 27dd2c05e72d617a8cdb4438969c51a58f3ebda5 (diff) |
Teach Index.Stage to stage files in ignored dirs
If a directory is ignored and you attempt to stage
a file beneath that directory, the file is not
staged. By having diff return files beneath that
ignored dir, we can add that file.
Diffstat (limited to 'LibGit2Sharp/Diff.cs')
-rw-r--r-- | LibGit2Sharp/Diff.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LibGit2Sharp/Diff.cs b/LibGit2Sharp/Diff.cs index 62b738e3..29034b00 100644 --- a/LibGit2Sharp/Diff.cs +++ b/LibGit2Sharp/Diff.cs @@ -38,7 +38,8 @@ namespace LibGit2Sharp if (diffOptions.HasFlag(DiffModifiers.IncludeIgnored)) { - options.Flags |= GitDiffOptionFlags.GIT_DIFF_INCLUDE_IGNORED; + options.Flags |= GitDiffOptionFlags.GIT_DIFF_INCLUDE_IGNORED | + GitDiffOptionFlags.GIT_DIFF_RECURSE_IGNORED_DIRS; } if (diffOptions.HasFlag(DiffModifiers.IncludeUnmodified)) |