Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you want this workflow, you can treat jj's `@` (nominally equivalent to git's HEAD) as the git index, then at commit time, manually squash changes to `@-` just like you would with `git add --patch`.


When I've asked about using a jj stage, that's the workflow people pointed me to, as described in this tutorial [0]. I've not tried it, nor jujutsu, but I felt it worth pointing at a concrete example to allay or stoke fears of people on the fence.

[0] https://steveklabnik.github.io/jujutsu-tutorial/real-world-w...


FWIW, @ is a shortcut for HEAD in Git.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: