git-subhistory icon indicating copy to clipboard operation
git-subhistory copied to clipboard

Mc devel

Open Darthholi opened this issue 8 years ago • 2 comments

Soo here is the surprise gift :) Saving last split position for making future splits faster.

Darthholi avatar Dec 31 '16 11:12 Darthholi

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?

laughinghan avatar Jan 03 '17 08:01 laughinghan

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? :)

Darthholi avatar Jan 04 '17 10:01 Darthholi