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:
authoryorah <yoram.harmelin@gmail.com>2013-03-11 18:35:03 +0400
committernulltoken <emeric.fermas@gmail.com>2013-04-09 23:03:33 +0400
commitc4b4f9382da0571b1ff76b263255a9e3e412b491 (patch)
tree8324487e3954213cc2963131273271e263b5ae42 /LibGit2Sharp/RepositoryExtensions.cs
parent3f5bf001d622c5dfbeb5dd46df2bf739a07f7cc7 (diff)
Add ExplicitPathsOptions to Repository.Reset()
Diffstat (limited to 'LibGit2Sharp/RepositoryExtensions.cs')
-rw-r--r--LibGit2Sharp/RepositoryExtensions.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/LibGit2Sharp/RepositoryExtensions.cs b/LibGit2Sharp/RepositoryExtensions.cs
index 25c5b703..88c48087 100644
--- a/LibGit2Sharp/RepositoryExtensions.cs
+++ b/LibGit2Sharp/RepositoryExtensions.cs
@@ -136,7 +136,11 @@ namespace LibGit2Sharp
/// <param name = "repository">The <see cref = "Repository" /> being worked with.</param>
/// <param name = "committish">A revparse spec for the target commit object.</param>
/// <param name = "paths">The list of paths (either files or directories) that should be considered.</param>
- public static void Reset(this IRepository repository, string committish = "HEAD", IEnumerable<string> paths = null)
+ /// <param name = "explicitPathsOptions">
+ /// If set, the passed <paramref name="paths"/> will be treated as explicit paths.
+ /// Use these options to determine how unmatched explicit paths should be handled.
+ /// </param>
+ public static void Reset(this IRepository repository, string committish = "HEAD", IEnumerable<string> paths = null, ExplicitPathsOptions explicitPathsOptions = null)
{
if (repository.Info.IsBare)
{
@@ -147,7 +151,7 @@ namespace LibGit2Sharp
Commit commit = LookUpCommit(repository, committish);
- repository.Reset(commit, paths);
+ repository.Reset(commit, paths, explicitPathsOptions);
}
private static Commit LookUpCommit(IRepository repository, string committish)