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 | 1b8203988d817fa5bc4fde76c364c34b2dd1476c (patch) | |
| tree | 46bcefd30174f72dfa06d769f4dcad4899bf5fbf /modules/external-open-lib.el | |
| parent | 848a104f170c601d02a4e4a0abd8129e4ced9d25 (diff) | |
| download | dotemacs-1b8203988d817fa5bc4fde76c364c34b2dd1476c.tar.gz dotemacs-1b8203988d817fa5bc4fde76c364c34b2dd1476c.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/external-open-lib.el')
0 files changed, 0 insertions, 0 deletions
