@@ -524,16 +524,10 @@ mod init {
524
524
}
525
525
match commit_state {
526
526
commit_st if commit_st. is_interesting ( ) => {
527
- // In single-parent mode with hidden tips , only return commits on the first-parent line
527
+ // In single-parent mode, only return commits on the first-parent line
528
528
let should_return = if matches ! ( self . parents, crate :: commit:: Parents :: First ) {
529
- // In single-parent mode
530
- if state. candidates . is_none ( ) {
531
- // No hidden tips - return all interesting commits (original behavior)
532
- true
533
- } else {
534
- // Hidden tips present - only return commits on first-parent line
535
- commit_st. is_on_first_parent_line ( )
536
- }
529
+ // In single-parent mode - only return commits on first-parent line
530
+ commit_st. is_on_first_parent_line ( )
537
531
} else {
538
532
// Not in single-parent mode - return all interesting commits
539
533
true
@@ -666,16 +660,10 @@ mod init {
666
660
}
667
661
match commit_state {
668
662
commit_st if commit_st. is_interesting ( ) => {
669
- // In single-parent mode with hidden tips , only return commits on the first-parent line
663
+ // In single-parent mode, only return commits on the first-parent line
670
664
let should_return = if matches ! ( self . parents, crate :: commit:: Parents :: First ) {
671
- // In single-parent mode
672
- if state. candidates . is_none ( ) {
673
- // No hidden tips - return all interesting commits (original behavior)
674
- true
675
- } else {
676
- // Hidden tips present - only return commits on first-parent line
677
- commit_st. is_on_first_parent_line ( )
678
- }
665
+ // In single-parent mode - only return commits on first-parent line
666
+ commit_st. is_on_first_parent_line ( )
679
667
} else {
680
668
// Not in single-parent mode - return all interesting commits
681
669
true
0 commit comments