diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 07:22:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 07:22:56 -0500 |
| commit | 81055c34c13bfc1aba2ad4f651d325a23688e135 (patch) | |
| tree | 2730d19ab2f53ea339c6a62991e48eb728fc0029 /modules/selection-framework.el | |
| parent | 523cad135153dfaa68da8a1845d0a8e02eb4b67c (diff) | |
| download | dotemacs-81055c34c13bfc1aba2ad4f651d325a23688e135.tar.gz dotemacs-81055c34c13bfc1aba2ad4f651d325a23688e135.zip | |
fix(modeline): key VC cache on resolved truename for symlink moves
The VC modeline cache keyed on (list file cj/modeline-vc-show-remote). If file was a symlink whose target moved to a different VC tree (shared drives, CI workspaces), the key was unchanged and the cache kept serving the old branch/state.
Added the resolved file-truename to the key, so a symlink re-pointed at a new target produces a different key and the cache refreshes. The extra file-truename is one stat per modeline refresh, cheap next to the VC calls the cache exists to avoid. Tests cover truename inclusion, key stability for an unchanged file, and a symlink whose target moves.
Diffstat (limited to 'modules/selection-framework.el')
0 files changed, 0 insertions, 0 deletions
