Skip to content

Can someone help explain what 'jj prev' is for? #6334

Answered by andyg0808
chummer80 asked this question in Q&A
Discussion options

You must be logged in to vote

So: for the way it looks like you're using JJ, jj prev --edit will be the one which makes sense. Here's why jj 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, and jj prev seems weird.

The other is the folks who use jj new in the way one might use git 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 …

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@jennings
Comment options

@chummer80
Comment options

@joyously
Comment options

@jennings
Comment options

@cenviity
Comment options

Answer selected by chummer80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants