git -c sequence.editor="sed -i '1ip oldercommit'" rebase -i @~
Git using standard UNIX tools for these things instead of a specialized syntax, means I can easily write more complicated automations. git -c sequence.editor="sed -i '1ip oldercommit'" rebase -i @~
Git using standard UNIX tools for these things instead of a specialized syntax, means I can easily write more complicated automations.All of that is automatic with jj.
How many do I want?
> How do find the correct arguments
How do you find the correct arguments for jj?
> and git checkouts to do before?
Why would I do a checkout before? I don't want to modify the worktree? Maybe I in fact also want to alter the worktree, but that's unrelated.
> Are you sure you remembered to do everything?
Am I sure I have all my files ordered? No. Does it matter? Also no. Are you sure you have no bug in your commits in JJ?
If I want git to alter some set of commit chains, I can tell it to. Actually I never needed to do that, because I don't work on several thousand branches at the same time. I prefer it to not alter unrelated branches automatically, just because some earlier commit changed that is in both. Such things actually undermines the trust I have in a tool, because it does things I haven't told it to do, even if I'm aware it does these things.
> What if there are merge commits?
Then I resolve them. Merge conflicts occur, because there is some actual conflicting change and often it is also semantic. These don't go a way by changing the VCS. On a theoretic basis, these require outside information(=decisions) that is not there yet. There are more often semantic conflicts, that are not syntactic, then there are the other way around. If you are referring to doing the same merge conflicts again, I can tell Git to resolve them automatically too, but it actually occurred too often, that this is not actually what I want, so I actually dislike that feature now.