Skip to content

Confusion Surrounding the JJ CLI - Seeking Clarification #2691

Answered by ilyagr
johnwheeler asked this question in Q&A
Discussion options

You must be logged in to vote

I think @martinvonz described what happened at step 6 of the question. I'll try to explain what happened at step 5.

At step 5, the commit vvlz that looks like a branch is the so-called "working-copy commit", marked by a @ symbol. jj created that commit, but note that it is marked as "empty", meaning it has no diffs from its parent commit. So, the "branch" is trivial at this point. If you edit the working copy, the working copy commit is the one that will be modified. At that point, you'd have a real branch, since you are adding changes on top of commit krzmz. If you wanted to get rid of the branch, you could amend the changes you made into krzmz, but jj doesn't do it until you explicitly …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ilyagr
Comment options

Answer selected by johnwheeler
@BatmanAoD
Comment options

@johnwheeler
Comment options

@martinvonz
Comment options

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