@@ -106,14 +106,25 @@ IEnumerator IEnumerable.GetEnumerator()
106
106
107
107
#endregion
108
108
109
+ /// <summary>
110
+ /// Create a new local branch with the specified name
111
+ /// </summary>
112
+ /// <param name="name">The name of the branch.</param>
113
+ /// <param name="committish">Revparse spec for the target commit.</param>
114
+ /// <returns>A new <see cref="Branch"/>.</returns>
115
+ public virtual Branch Add ( string name , string committish )
116
+ {
117
+ return Add ( name , committish , false ) ;
118
+ }
119
+
109
120
/// <summary>
110
121
/// Create a new local branch with the specified name
111
122
/// </summary>
112
123
/// <param name="name">The name of the branch.</param>
113
124
/// <param name="committish">Revparse spec for the target commit.</param>
114
125
/// <param name="allowOverwrite">True to allow silent overwriting a potentially existing branch, false otherwise.</param>
115
126
/// <returns>A new <see cref="Branch"/>.</returns>
116
- public virtual Branch Add ( string name , string committish , bool allowOverwrite = false )
127
+ public virtual Branch Add ( string name , string committish , bool allowOverwrite )
117
128
{
118
129
Ensure . ArgumentNotNullOrEmptyString ( name , "name" ) ;
119
130
Ensure . ArgumentNotNullOrEmptyString ( committish , "committish" ) ;
@@ -138,14 +149,25 @@ public virtual void Remove(Branch branch)
138
149
}
139
150
}
140
151
152
+ /// <summary>
153
+ /// Rename an existing local branch
154
+ /// </summary>
155
+ /// <param name="branch">The current local branch.</param>
156
+ /// <param name="newName">The new name the existing branch should bear.</param>
157
+ /// <returns>A new <see cref="Branch"/>.</returns>
158
+ public virtual Branch Rename ( Branch branch , string newName )
159
+ {
160
+ return Rename ( branch , newName , false ) ;
161
+ }
162
+
141
163
/// <summary>
142
164
/// Rename an existing local branch
143
165
/// </summary>
144
166
/// <param name="branch">The current local branch.</param>
145
167
/// <param name="newName">The new name the existing branch should bear.</param>
146
168
/// <param name="allowOverwrite">True to allow silent overwriting a potentially existing branch, false otherwise.</param>
147
169
/// <returns>A new <see cref="Branch"/>.</returns>
148
- public virtual Branch Rename ( Branch branch , string newName , bool allowOverwrite = false )
170
+ public virtual Branch Rename ( Branch branch , string newName , bool allowOverwrite )
149
171
{
150
172
Ensure . ArgumentNotNull ( branch , "branch" ) ;
151
173
Ensure . ArgumentNotNullOrEmptyString ( newName , "newName" ) ;
0 commit comments