Skip to content

Cleaning up superfluous revisions in jj log #4965

Answered by martinvonz
bcspragu asked this question in Q&A
Discussion options

You must be logged in to vote

What are all those conflicted commits and how are they empty??

See https://martinvonz.github.io/jj/latest/FAQ/#how-do-i-deal-with-divergent-changes-after-the-change-id for some explanation of why they might be divergent. I sent PR #4966 to try to explain why merge commits are often empty.

And what's the "correct" way to clean them. I can see they show up as part of immutable_heads().., and ancestors(immutable_heads().., 2) is part of the default log revset.

What happens on the remotes when the PR has been merged? Is the remote configured to delete the branch? If it is, then the next jj git fetch should detect that the branch was deleted, and any commits that are no longer reachable on…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bcspragu
Comment options

@martinvonz
Comment options

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