Commit b911b43
committed
feat: improve cache of copy targets
For templates and symlinks, it is easy to see if the target has
changed (e.g., symlink is destroyed, or the rendered template differs
to the target). This is not as easy to do with copy target; if the
source and target differ, it is unclear whether the source was modified
and the target is stale, or the target was modified outside of
dotter (or both).
This changes the caching so that it stores a hash (using `xxhash`) of
both source and target. On redeployment, the hashes can be compared and
dotter can determine whether it is safe to override the target file.
Assisted-by: Claude Code:claude-sonnet-4-6
Signed-off-by: JP-Ellis <josh@jpellis.me>1 parent b28bfeb commit b911b43
6 files changed
Lines changed: 811 additions & 251 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments