Skip to content

Use jj commit_id, not change_id, as the reference revision - #293

Merged
dgutov merged 1 commit into
dgutov:masterfrom
jaybosamiya:fix-jj-stale-reference-cache
Aug 11, 2026
Merged

Use jj commit_id, not change_id, as the reference revision#293
dgutov merged 1 commit into
dgutov:masterfrom
jaybosamiya:fix-jj-stale-reference-cache

Conversation

@jaybosamiya

Copy link
Copy Markdown
Contributor

diff-hl-create-revision caches the reference file in a temp file keyed by the revision string, assuming that string is content-addressed, and only refetches when it's missing. A jj change ID survives changes to the contents. So after (for example) squashing into @-, the fringe keeps showing the squashed lines as uncommitted. commit_id changes with the content and fixes it.

Related: 6938d20 / #250

@dgutov

dgutov commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Thanks!

@dgutov
dgutov merged commit 48c7f55 into dgutov:master Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants