Skip to content

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

Open
jaybosamiya wants to merge 1 commit into
dgutov:masterfrom
jaybosamiya:fix-jj-stale-reference-cache
Open

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

Conversation

@jaybosamiya

Copy link
Copy Markdown

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

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.

1 participant