Commit c71f8f3
rebase -i: remove unnecessary state rebase-root
Before calling 'git cherry-pick', interactive rebase currently checks
if we are rebasing from root (if --root was passed). If we are, the
'--ff' flag to 'git cherry-pick' is omitted. However, according to the
documentation for 'git cherry-pick --ff', "If the current HEAD is the
same as the parent of the cherry-picked commit, then a fast forward to
this commit will be performed.". This should never be the case when
rebasing from root, so it should not matter whether --ff is passed, so
simplify the code by removing the condition.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent c6f7de5 commit c71f8f3
1 file changed
+0
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 171 | | |
177 | 172 | | |
178 | 173 | | |
| |||
582 | 577 | | |
583 | 578 | | |
584 | 579 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | 580 | | |
590 | 581 | | |
591 | 582 | | |
| |||
649 | 640 | | |
650 | 641 | | |
651 | 642 | | |
652 | | - | |
653 | | - | |
654 | 643 | | |
655 | 644 | | |
656 | 645 | | |
| |||
681 | 670 | | |
682 | 671 | | |
683 | 672 | | |
684 | | - | |
685 | | - | |
686 | 673 | | |
687 | 674 | | |
688 | 675 | | |
| |||
705 | 692 | | |
706 | 693 | | |
707 | 694 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | 695 | | |
715 | 696 | | |
716 | 697 | | |
| |||
0 commit comments