Commit a9a74d5
feat: ignore backup files in .gitignore by default
This change ensures that backup files created by AgentSync (e.g., when
replacing an existing file with a symlink or during skill updates) are
automatically ignored by Git.
Changes:
- In `src/config.rs`, `all_gitignore_entries()` now includes:
- `{destination}.bak.*` for every target destination.
- `.agents/skills/*.bak` for skill update backups.
- Added a unit test `test_all_gitignore_entries_includes_backup_patterns` to
verify the new behavior.
- Verified that all 191 tests pass.
Co-authored-by: yacosta738 <33158051+yacosta738@users.noreply.github.com>1 parent b202ac1 commit a9a74d5
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| 289 | + | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
| |||
1262 | 1264 | | |
1263 | 1265 | | |
1264 | 1266 | | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
1265 | 1285 | | |
0 commit comments