Allow selecting hidden/divergent changes using change ID
Resolves #7028. If anyone wants to try it out and see how it feels, it's available as scott2000/change-generation in the jj repo.
Log with divergent:
Evolog with hidden commits:
Evolog with hidden and divergent:
Checklist
If applicable:
- [x] I have updated
CHANGELOG.md - [x] I have updated the documentation (
README.md,docs/,demos/) - [ ] I have updated the config schema (
cli/src/config-schema.json) - [x] I have added/updated tests to cover my changes
I've been using it for two days, and it worked very well so far :+1:
I updated this PR to use the / separator instead of ?. This also makes the implementation significantly simpler. Since /0 no longer is visually similar to the old ?? divergent marker, I also moved "divergent" to be a label at the end, similar to conflicts.
Screenshots
Log with divergent:
Evolog with hidden commits:
Evolog with hidden and divergent:
Edit: I updated the generation number to be calculated ignoring visible/hidden state as suggested in https://github.com/jj-vcs/jj/pull/7194#discussion_r2548952508