File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -140,14 +140,25 @@ public virtual void Remove(string name)
140
140
Proxy . git_remote_delete ( repository . Handle , name ) ;
141
141
}
142
142
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
+
143
154
/// <summary>
144
155
/// Renames an existing <see cref="Remote"/>.
145
156
/// </summary>
146
157
/// <param name="name">The current remote name.</param>
147
158
/// <param name="newName">The new name the existing remote should bear.</param>
148
159
/// <param name="callback">The callback to be used when problems with renaming occur. (e.g. non-default fetch refspecs)</param>
149
160
/// <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 )
151
162
{
152
163
Ensure . ArgumentNotNull ( name , "name" ) ;
153
164
Ensure . ArgumentNotNull ( newName , "newName" ) ;
You can’t perform that action at this time.
0 commit comments