diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-01 17:35:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-01 17:35:16 +0200 |
| commit | fc063aba4822e8e7d9ccc6c721fc2a711298e166 (patch) | |
| tree | c42656f6db4fe10e1dc4ee8d585c974d7a323f82 /lib/log.source.sh | |
| parent | 00e5de525bde5d0d77d9553c6126908f2fdfde20 (diff) | |
Extract generate::safe_overwrite helper to eliminate DRY violation
The "safe overwrite" pattern (diff -q tmp dest, then rm or mv) was
duplicated in template, gemfeed (2x), and notes modules. Extracted
into a shared helper with unit tests covering all three cases (no
dest, identical dest, differing dest).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'lib/log.source.sh')
0 files changed, 0 insertions, 0 deletions
