Why does jj log -p
start with an old commit?
#2474
-
I was trying to figure out some weird output from The help string says that the default starting point for Shouldn't I'm not sure if this is something weird about my specific repo; if it is, I may not have time to build a minimal reproducible example any time soon. (P.S. I've read the responses to my other discussion but need a bit of time to digest them and respond.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I think you got most of that right:
The commits are necessarily ordered with children before parents (unless you pass |
Beta Was this translation helpful? Give feedback.
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 inimmutable_heads()
, plus some of the immutable heads for context".immutable_heads()
is configurable but defaults totrunk() | 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…