From: Junio C Hamano Date: Tue, 20 Jul 2021 15:36:33 GMT Subject: Re: why "git rebase" searching the duplicate patches in rather than in ? Message-ID: In-Reply-To: <87a6mhgxv4.fsf@osv.gnss.ru> Sergey Organov writes: > Similar problem should exist for explicitly specified that > might happen to have little in common with the current , right? I do not think so. Plain-vanilla rebase is to carry forward our changes on top of updated upstream, which means that there is x--x--x (side) / ---o---o---o---o---o---o (upstream) ^ (old upstream) inherently ancestry relationship between the old upstream and the current upstream when rebasing 'side' to 'upstream'. > I don't actually like this. You do not have to ;-) because I was not suggesting to change any existing behaviour. It was merely me thinking aloud, how I might do the feature if I were designing it from scratch now. > Overall, it seems that we should take the rather than > (that is still when --onto is not specified), and > apply the skipping logic from there, to whatever depth the merge-base > will give us. If it's already implemented this way, then only the manual > page needs to be fixed. Sounds sensible. I didn't check what the actual code does ;-)