Skip to content

Why does jj log -p start with an old commit? #2474

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

You must be logged in to vote

Oh, I think I see what you're confused about now. jj log defaults to that expression we talked about before, i.e. @ | ancestors(immutable_heads().., 2) | heads(immutable_heads()). What that means is roughly "the working-copy commit, plus commits that are not in immutable_heads(), plus some of the immutable heads for context". immutable_heads() is configurable but defaults to trunk() | tags(). The thinking is that users don't usually want to see all the history in their repo. You can override it if you want to see a different set of commits by default.

If you don't want to override the default in general but still want to see the full history in particular case, I think what you were looki…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@BatmanAoD
Comment options

BatmanAoD Oct 30, 2023
Collaborator Author

@martinvonz
Comment options

Answer selected by BatmanAoD
@BatmanAoD
Comment options

BatmanAoD Oct 30, 2023
Collaborator Author

@BatmanAoD
Comment options

BatmanAoD Oct 30, 2023
Collaborator Author

@martinvonz
Comment options

@BatmanAoD
Comment options

BatmanAoD Oct 30, 2023
Collaborator Author

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