Skip to content

Commit cb9ebe5

Browse files
shiftkeynulltoken
authored andcommitted
Drop optional parameters in RemoteCollection.cs
1 parent a897011 commit cb9ebe5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

LibGit2Sharp/RemoteCollection.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,25 @@ public virtual void Remove(string name)
140140
Proxy.git_remote_delete(repository.Handle, name);
141141
}
142142

143+
/// <summary>
144+
/// Renames an existing <see cref="Remote"/>.
145+
/// </summary>
146+
/// <param name="name">The current remote name.</param>
147+
/// <param name="newName">The new name the existing remote should bear.</param>
148+
/// <returns>A new <see cref="Remote"/>.</returns>
149+
public virtual Remote Rename(string name, string newName)
150+
{
151+
return Rename(name, newName, null);
152+
}
153+
143154
/// <summary>
144155
/// Renames an existing <see cref="Remote"/>.
145156
/// </summary>
146157
/// <param name="name">The current remote name.</param>
147158
/// <param name="newName">The new name the existing remote should bear.</param>
148159
/// <param name="callback">The callback to be used when problems with renaming occur. (e.g. non-default fetch refspecs)</param>
149160
/// <returns>A new <see cref="Remote"/>.</returns>
150-
public virtual Remote Rename(string name, string newName, RemoteRenameFailureHandler callback = null)
161+
public virtual Remote Rename(string name, string newName, RemoteRenameFailureHandler callback)
151162
{
152163
Ensure.ArgumentNotNull(name, "name");
153164
Ensure.ArgumentNotNull(newName, "newName");

0 commit comments

Comments
 (0)