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:
authorNikolay Zakharov <nikolay@desh.su>2013-08-07 14:03:04 +0400
committerNikolay Zakharov <nikolay@desh.su>2013-08-07 14:03:04 +0400
commitbcc25cec6d8f0eb564d23d47af435f3ca1691a7b (patch)
tree6ed82db88379d8f2b2d0cfdc5166c0e49527c19b /LibGit2Sharp/Diff.cs
parent49ca83315724464285567490dc84f9471a1da23d (diff)
Skip building diff patch while doing stage/reset
Diffstat (limited to 'LibGit2Sharp/Diff.cs')
-rw-r--r--LibGit2Sharp/Diff.cs3
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);
}
}