@@ -577,37 +577,6 @@ public BlameHunkCollection Blame(string path, BlameOptions options = null)
577
577
return new BlameHunkCollection ( this , Handle , path , options ?? new BlameOptions ( ) ) ;
578
578
}
579
579
580
- /// <summary>
581
- /// Checkout the specified <see cref="Branch"/>, reference or SHA.
582
- /// <para>
583
- /// If the committishOrBranchSpec parameter resolves to a branch name, then the checked out HEAD will
584
- /// will point to the branch. Otherwise, the HEAD will be detached, pointing at the commit sha.
585
- /// </para>
586
- /// </summary>
587
- /// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout.</param>
588
- /// <param name="checkoutModifiers"><see cref="CheckoutModifiers"/> controlling checkout behavior.</param>
589
- /// <param name="onCheckoutProgress"><see cref="CheckoutProgressHandler"/> that checkout progress is reported through.</param>
590
- /// <param name="checkoutNotifications"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param>
591
- /// <param name="signature">Identity for use when updating the reflog.</param>
592
- /// <returns>The <see cref="Branch"/> that was checked out.</returns>
593
- [ Obsolete ( "This overload will be removed in the next release. Please use Repository.Checkout(string, CheckoutOptions, Signature) instead." ) ]
594
- public Branch Checkout ( string committishOrBranchSpec , CheckoutModifiers checkoutModifiers , CheckoutProgressHandler onCheckoutProgress , CheckoutNotificationOptions checkoutNotifications , Signature signature = null )
595
- {
596
- var options = new CheckoutOptions ( )
597
- {
598
- CheckoutModifiers = checkoutModifiers ,
599
- OnCheckoutProgress = onCheckoutProgress
600
- } ;
601
-
602
- if ( checkoutNotifications != null )
603
- {
604
- options . OnCheckoutNotify = checkoutNotifications . CheckoutNotifyHandler ;
605
- options . CheckoutNotifyFlags = checkoutNotifications . NotifyFlags ;
606
- }
607
-
608
- return Checkout ( committishOrBranchSpec , options , signature ) ;
609
- }
610
-
611
580
/// <summary>
612
581
/// Checkout the specified <see cref="Branch"/>, reference or SHA.
613
582
/// <para>
@@ -660,37 +629,6 @@ public Branch Checkout(string committishOrBranchSpec, CheckoutOptions options, S
660
629
return Head ;
661
630
}
662
631
663
- /// <summary>
664
- /// Checkout the tip commit of the specified <see cref="Branch"/> object. If this commit is the
665
- /// current tip of the branch, will checkout the named branch. Otherwise, will checkout the tip commit
666
- /// as a detached HEAD.
667
- /// </summary>
668
- /// <param name="branch">The <see cref="Branch"/> to check out.</param>
669
- /// <param name="checkoutModifiers"><see cref="CheckoutModifiers"/> controlling checkout behavior.</param>
670
- /// <param name="onCheckoutProgress"><see cref="CheckoutProgressHandler"/> that checkout progress is reported through.</param>
671
- /// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param>
672
- /// <param name="signature">Identity for use when updating the reflog.</param>
673
- /// <returns>The <see cref="Branch"/> that was checked out.</returns>
674
- [ Obsolete ( "This overload will be removed in the next release. Please use Repository.Checkout(Branch, CheckoutOptions, Signature) instead." ) ]
675
- public Branch Checkout ( Branch branch , CheckoutModifiers checkoutModifiers , CheckoutProgressHandler onCheckoutProgress , CheckoutNotificationOptions checkoutNotificationOptions , Signature signature = null )
676
- {
677
- Ensure . ArgumentNotNull ( branch , "branch" ) ;
678
-
679
- var options = new CheckoutOptions
680
- {
681
- CheckoutModifiers = checkoutModifiers ,
682
- OnCheckoutProgress = onCheckoutProgress ,
683
- } ;
684
-
685
- if ( checkoutNotificationOptions != null )
686
- {
687
- options . OnCheckoutNotify = checkoutNotificationOptions . CheckoutNotifyHandler ;
688
- options . CheckoutNotifyFlags = checkoutNotificationOptions . NotifyFlags ;
689
- }
690
-
691
- return Checkout ( branch , options , signature ) ;
692
- }
693
-
694
632
/// <summary>
695
633
/// Checkout the tip commit of the specified <see cref="Branch"/> object. If this commit is the
696
634
/// current tip of the branch, will checkout the named branch. Otherwise, will checkout the tip commit
@@ -727,39 +665,6 @@ public Branch Checkout(Branch branch, CheckoutOptions options, Signature signatu
727
665
return Head ;
728
666
}
729
667
730
- /// <summary>
731
- /// Checkout the specified <see cref="LibGit2Sharp.Commit"/>.
732
- /// <para>
733
- /// Will detach the HEAD and make it point to this commit sha.
734
- /// </para>
735
- /// </summary>
736
- /// <param name="commit">The <see cref="LibGit2Sharp.Commit"/> to check out.</param>
737
- /// <param name="checkoutModifiers"><see cref="CheckoutModifiers"/> controlling checkout behavior.</param>
738
- /// <param name="onCheckoutProgress"><see cref="CheckoutProgressHandler"/> that checkout progress is reported through.</param>
739
- /// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param>
740
- /// <param name="signature">Identity for use when updating the reflog.</param>
741
- /// <returns>The <see cref="Branch"/> that was checked out.</returns>
742
- [ Obsolete ( "This overload will be removed in the next release. Please use Repository.Checkout(Commit, CheckoutOptions, Signature) instead." ) ]
743
- public Branch Checkout ( Commit commit , CheckoutModifiers checkoutModifiers , CheckoutProgressHandler onCheckoutProgress , CheckoutNotificationOptions checkoutNotificationOptions , Signature signature = null )
744
- {
745
-
746
- var options = new CheckoutOptions
747
- {
748
- CheckoutModifiers = checkoutModifiers ,
749
- OnCheckoutProgress = onCheckoutProgress ,
750
- } ;
751
-
752
- if ( checkoutNotificationOptions != null )
753
- {
754
- options . OnCheckoutNotify = checkoutNotificationOptions . CheckoutNotifyHandler ;
755
- options . CheckoutNotifyFlags = checkoutNotificationOptions . NotifyFlags ;
756
- }
757
-
758
- Checkout ( commit . Tree , options , commit . Id . Sha , commit . Id . Sha , signature ) ;
759
-
760
- return Head ;
761
- }
762
-
763
668
/// <summary>
764
669
/// Checkout the specified <see cref="LibGit2Sharp.Commit"/>.
765
670
/// <para>
0 commit comments