Skip to content

Commit

Permalink
Drop optional parameters in RemoteCollection.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey authored and nulltoken committed May 15, 2015
1 parent a897011 commit cb9ebe5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion LibGit2Sharp/RemoteCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,25 @@ public virtual void Remove(string name)
Proxy.git_remote_delete(repository.Handle, name);
}

/// <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>
/// <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");
Expand Down

0 comments on commit cb9ebe5

Please sign in to comment.