diff options
author | Brendan Forster <brendan@github.com> | 2015-05-10 12:52:13 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-05-15 20:31:39 +0300 |
commit | cb9ebe5e6e4a7ba00a690cd3237793bf2cf514d5 (patch) | |
tree | c5ba77fce3b23ddb7f3a0104ac7a8a8929469265 | |
parent | a8970119bce765ea4ca18d73fb724e924467607f (diff) |
Drop optional parameters in RemoteCollection.cs
-rw-r--r-- | LibGit2Sharp/RemoteCollection.cs | 13 |
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"); |