4 ms·
I have tried jj several times but I feel like it slows me down significantly because I can’t grok the workflow. I like to do a bunch of changes then quickly sel
by danielhep 11mo ago
I have tried jj several times but I feel like it slows me down significantly because I can’t grok the workflow. I like to do a bunch of changes then quickly select them in my editor and commit them, breaking them up into different commits to keep them organized. With jj’s lack of editor integration, I don’t know how to do this with the cli alone so I end up with bigger messier commits.
- WolfeReader 11mo agoYou want "jj commit -i". You'll get an interface that lets you choose files, chunks, or lines to commit.
- Zambyte 11mo agoOr 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.
- IshKebab 11mo agoWith git I can stage lines right in my IDE, no messing around in shitty TUIs.
- Zambyte 11mo agohttps://jj-vcs.github.io/jj/latest/config/ https://jj-vcs.github.io/jj/latest/config/ ctrl+f "tool"
- mettamage 11mo agoSold! I'm trying jj. I've seen enough mentions now. I've never read anything about it. I hope it's compatible with git.
- MrGreenTea 11mo agoThe 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.
- tcoff91 11mo agoIn JJ you make a bunch of changes and then you split the commit into multiple commits.
- stouset 11mo agoThis exact thing is quite literally one of jj’s flagship features: `jj split`.