jj
jj copied to clipboard
[POC] Generations for change numbers
Resolves #7028. This is currently just a proof of concept in case anyone wants to try it out and see how it feels (it's available as scott2000/change-generation in the jj repo).
Checklist
If applicable:
- [ ] I have updated
CHANGELOG.md - [ ] I have updated the documentation (
README.md,docs/,demos/) - [ ] I have updated the config schema (
cli/src/config-schema.json) - [ ] 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