@@ -440,16 +440,6 @@ public static Repository Clone(string sourceUrl, string workdirPath,
440
440
return new Repository ( workdirPath ) ;
441
441
}
442
442
443
- /// <summary>
444
- /// Checkout the specified <see cref = "Branch" />, reference or SHA.
445
- /// </summary>
446
- /// <param name = "commitOrBranchSpec">A revparse spec for the commit or branch to checkout.</param>
447
- /// <returns>The <see cref = "Branch" /> that was checked out.</returns>
448
- public Branch Checkout ( string commitOrBranchSpec )
449
- {
450
- return Checkout ( commitOrBranchSpec , CheckoutOptions . None , null ) ;
451
- }
452
-
453
443
/// <summary>
454
444
/// Checkout the specified <see cref = "Branch" />, reference or SHA.
455
445
/// </summary>
@@ -470,16 +460,6 @@ public Branch Checkout(string commitishOrBranchSpec, CheckoutOptions checkoutOpt
470
460
return CheckoutInternal ( commitId . Sha , checkoutOptions , onCheckoutProgress ) ;
471
461
}
472
462
473
- /// <summary>
474
- /// Checkout the specified <see cref = "Branch" />.
475
- /// </summary>
476
- /// <param name="branch">The <see cref = "Branch" /> to check out.</param>
477
- /// <returns>The <see cref = "Branch" /> that was checked out.</returns>
478
- public Branch Checkout ( Branch branch )
479
- {
480
- return Checkout ( branch , CheckoutOptions . None , null ) ;
481
- }
482
-
483
463
/// <summary>
484
464
/// Checkout the specified <see cref = "Branch" />.
485
465
/// </summary>
@@ -502,7 +482,7 @@ public Branch Checkout(Branch branch, CheckoutOptions checkoutOptions, CheckoutP
502
482
/// <param name="checkoutOptions"><see cref = "CheckoutOptions" /> controlling checkout behavior.</param>
503
483
/// <param name="onCheckoutProgress"><see cref = "CheckoutProgressHandler" /> that checkout progress is reported through.</param>
504
484
/// <returns>The <see cref = "Branch" /> that was checked out.</returns>
505
- internal Branch CheckoutInternal ( string commitIdOrCanonicalBranchName , CheckoutOptions checkoutOptions , CheckoutProgressHandler onCheckoutProgress )
485
+ private Branch CheckoutInternal ( string commitIdOrCanonicalBranchName , CheckoutOptions checkoutOptions , CheckoutProgressHandler onCheckoutProgress )
506
486
{
507
487
if ( Info . IsBare )
508
488
{
0 commit comments