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>2012-09-03 16:32:48 +0400
committernulltoken <emeric.fermas@gmail.com>2012-09-05 13:53:16 +0400
commitc8033399333f12d0e955812e341d23889a5974ca (patch)
tree9021bc087a172e9650b13a97bbf81e9ba52a2c39 /LibGit2Sharp/BranchCollection.cs
parent21fea3217881761c7b9cdeab41bbca43b2fa7e32 (diff)
Make Branches.Remove() accept a Branch as its target
Diffstat (limited to 'LibGit2Sharp/BranchCollection.cs')
-rw-r--r--LibGit2Sharp/BranchCollection.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/LibGit2Sharp/BranchCollection.cs b/LibGit2Sharp/BranchCollection.cs
index d86c9424..e4da587e 100644
--- a/LibGit2Sharp/BranchCollection.cs
+++ b/LibGit2Sharp/BranchCollection.cs
@@ -193,6 +193,17 @@ namespace LibGit2Sharp
}
/// <summary>
+ /// Deletes the specified branch.
+ /// </summary>
+ /// <param name = "branch">The branch to delete.</param>
+ public virtual void Remove(Branch branch)
+ {
+ Ensure.ArgumentNotNull(branch, "branch");
+
+ Remove(branch.Name, branch.IsRemote);
+ }
+
+ /// <summary>
/// Deletes the branch with the specified name.
/// </summary>
/// <param name = "name">The name of the branch to delete.</param>