Mc devel
Soo here is the surprise gift :) Saving last split position for making future splits faster.
Thanks! Still making my way through, but do you think you could describe for me at a high level specifically what you're trying to do and your approach?
Of course, so: When splitting is successfully done, it saves the point of split to subhistory/start/$newbranch. When called as split again with the same $newbranch, it goes through: -If it is force, do not use any shortcut, do what subhistory was already doing. -If the branch already exists and subhistory/start/$newbranch shortcut exists and the history is such that shortcut is a (grand grand grand...) parent of HEAD, then we just filterbranch shortcut..HEAD and add it to the tip of newbranch. (by parent filter command, otherwise the new shortcut would have no parent).
If branch is succesfully assimilated, also upgrade shortcut.
Is myexplanation okay? :)