Comment by WolfeReader
12 hours ago
You want "jj commit -i". You'll get an interface that lets you choose files, chunks, or lines to commit.
12 hours ago
You want "jj commit -i". You'll get an interface that lets you choose files, chunks, or lines to commit.
Sold!
I'm trying jj. I've seen enough mentions now. I've never read anything about it.
I hope it's compatible with git.
The compatibility with git is the whole reason it's so popular (just run `jj git init --colocate` in your git repo). You can use it without forcing your collaborators to switch from git and you can use it will a git forges as well.
Or the shorthand: jj ci -i
Or if you don't care to set a commit message just yet: jj split -i
Or if you want to defer making sure each commit has the right content until later, just use jj new, and then later use jj squash and jj split to make the commits have sensible changes, and jj desc to set the descriptions.
With git I can stage lines right in my IDE, no messing around in shitty TUIs.