Community
Participate
Working Groups
Description: When I rebasing local branch 'main' onto 'origin/main', after rebase done, original ancestor commit of 'main' lost. Precondition: Before rebase, local branch 'main' and 'origin/main' do not have the same ancestor commit.
By the logic in "org.eclipse.jgit.api.RebaseCommand#calculatePickList", current branch's ancestor commit is ignored.
Not having a common ancestor means the pick list should include the initial commit, which has parentCount == 0. And cherry-pick should be able to deal with this commit, too. This was reported before in bug 563805.
*** Bug 563805 has been marked as a duplicate of this bug. ***
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/201607
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/201608
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/201607 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=8bc13fb79d3ff44f09b67a1effda7155b47391ae
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/201608 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=8c0c96e0a7e88a12cb4478fc5983680e24c34855