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)
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" ) ;
You can’t perform that action at this time.
0 commit comments