diff options
author | Nikolay Zakharov <nikolay@desh.su> | 2013-08-07 14:03:04 +0400 |
---|---|---|
committer | Nikolay Zakharov <nikolay@desh.su> | 2013-08-07 14:03:04 +0400 |
commit | bcc25cec6d8f0eb564d23d47af435f3ca1691a7b (patch) | |
tree | 6ed82db88379d8f2b2d0cfdc5166c0e49527c19b /LibGit2Sharp/Diff.cs | |
parent | 49ca83315724464285567490dc84f9471a1da23d (diff) |
Skip building diff patch while doing stage/reset
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 a6e85506..62b738e3 100644 --- a/LibGit2Sharp/Diff.cs +++ b/LibGit2Sharp/Diff.cs @@ -270,7 +270,8 @@ namespace LibGit2Sharp DispatchUnmatchedPaths(explicitPathsOptions, filePaths, matchedPaths); } - return new TreeChanges(diffList); + bool skipPatchBuilding = (compareOptions != null) && compareOptions.SkipPatchBuilding; + return new TreeChanges(diffList, skipPatchBuilding); } } |