3 ms·
well, you can do jj new <revision>, make your edit, and then do jj squash which will add the changes to the prev revision i do this for example when i want to
by throawayonthe 6mo ago
well, you can do jj new <revision>, make your edit, and then do jj squash which will add the changes to the prev revision
i do this for example when i want to see a specific edit highlighted in my editor, it's a nice workflow i think
- Aeolun 6mo agoThis is exactly how someone explained Git to me 12 years ago or so, and I’ve finally wrapped my head around it. Not changing now.
- hacker161 6mo ago[flagged]
- mh- 6mo agoIf I'm understanding the thread correctly, I have a git alias to `git commit --amend --no-edit`, for exactly this workflow. When I'm hacking on something locally and want to just keep amending a commit. I only ever do this if it's HEAD though.
- steveklabnik 6mo agoYes, one way to think about jj in a sort of low-level way is that every jj command does the equivalent of that, every time. (You can also set up watchman and have that happen on every file change...)