What problem does it solve?
After a GSD update wipes and reinstalls files, this tool merges the user's previously saved local modifications back into the new version. It uses a three-way comparison (pristine baseline, user-modified backup, newly installed version) to reliably distinguish user customizations from version drift and to prevent a false "no custom content" conclusion. When in doubt, it classifies as CONFLICT requiring user review, not SKIP.
Core Features & Use Cases
- Detects backed-up patches saved in gsd-local-patches and reads backup-meta.json to identify files to reapply.
- Determines a baseline using git history if available or gsd-pristine snapshots; performs three-way merges or strengthened two-way merges when baseline is missing.
- Enforces safety checks, reports conflicts, and provides post-merge verification guidance to ensure user modifications are preserved.
Quick Start
Run the gsd-reapply-patches workflow to begin merging your local modifications after a GSD update.