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:
authorBrendan Forster <brendan@github.com>2015-05-10 12:52:13 +0300
committernulltoken <emeric.fermas@gmail.com>2015-05-15 20:31:39 +0300
commitcb9ebe5e6e4a7ba00a690cd3237793bf2cf514d5 (patch)
treec5ba77fce3b23ddb7f3a0104ac7a8a8929469265
parenta8970119bce765ea4ca18d73fb724e924467607f (diff)
Drop optional parameters in RemoteCollection.cs
-rw-r--r--LibGit2Sharp/RemoteCollection.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/LibGit2Sharp/RemoteCollection.cs b/LibGit2Sharp/RemoteCollection.cs
index b0eb584a..d504ca3c 100644
--- a/LibGit2Sharp/RemoteCollection.cs
+++ b/LibGit2Sharp/RemoteCollection.cs
@@ -145,9 +145,20 @@ namespace LibGit2Sharp
/// </summary>
/// <param name="name">The current remote name.</param>
/// <param name="newName">The new name the existing remote should bear.</param>
+ /// <returns>A new <see cref="Remote"/>.</returns>
+ public virtual Remote Rename(string name, string newName)
+ {
+ return Rename(name, newName, null);
+ }
+
+ /// <summary>
+ /// Renames an existing <see cref="Remote"/>.
+ /// </summary>
+ /// <param name="name">The current remote name.</param>
+ /// <param name="newName">The new name the existing remote should bear.</param>
/// <param name="callback">The callback to be used when problems with renaming occur. (e.g. non-default fetch refspecs)</param>
/// <returns>A new <see cref="Remote"/>.</returns>
- public virtual Remote Rename(string name, string newName, RemoteRenameFailureHandler callback = null)
+ public virtual Remote Rename(string name, string newName, RemoteRenameFailureHandler callback)
{
Ensure.ArgumentNotNull(name, "name");
Ensure.ArgumentNotNull(newName, "newName");