Hacker News new | ask | show | jobs
by IshKebab 14 days ago
Ah right so I can say "jj put this change into a new/existing commit before this one"?
2 comments

Yes, for new that's what `jj split -i` / `jj commit -i` do by default. For existing that's `jj squash -i`.

`-i` makes it interactive (you select the changes you want in the parent, using a TUI), but you can also pass the list of files as arguments. You can also choose which commit you want to split (for split) or move from, to (for squash), etc, with arguments. More info on them here: https://docs.jj-vcs.dev/latest/cli-reference/#jj-split

Yep. `jj split` says "take this change and put parts of it into a new change". `jj squash` says "take this change and put parts (or all) of it into an existing change".