How would I go about moving a commit up a branch to be as early as possible without any conflicts (without much manual work, eg rebase -i)?
Eg
A-B-C-D-X
should become
A-B-X-C-D
if swapping X with C and D has no conflicts but swapping X with B would result in a conflict.
Thanks.
Well, this pretty much works but needs some cleanup.
After working with it for a while, I’ve bumped into another problem which I’ve posted here.