-
I'm new to using jj, so please bear with me as I ask an ignorant question: The combination of the name of the The most intuitive thing something called So what's
Running
Despite the name Is this what If I'm misunderstanding what Side note: I believe |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
So: for the way it looks like you're using JJ, There are two main schools of thought in using JJ: One is the folks who typically use The other is the folks who use Looking back at the example you gave, imagine that This is confusing in the situation you're in, because the original
which hopefully looks more like it's the "previous" commit now. (JJ automatically discards the empty & undescribed commit that If you want more information about the two JJ workflows I've mentioned above, see Steve Klabnik's tutorial. |
Beta Was this translation helpful? Give feedback.
So: for the way it looks like you're using JJ,
jj prev --edit
will be the one which makes sense. Here's whyjj prev
's behavior also makes sense, and is related.There are two main schools of thought in using JJ:
One is the folks who typically use
jj edit
to work on a commit, and the changes they make apply immediately to that commit. It's not uncommon to see them with@
pointing at a commit with a description and code. For these folks,jj prev --edit
makes sense, andjj prev
seems weird.The other is the folks who use
jj new
in the way one might usegit checkout
, and who squash work into a commit in order to change it. Their resting state is typically to have@
on an empty commit with no …