@gw-tools/gw 0.30.3 โ 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1014,15 +1014,22 @@ gw init --auto-clean --auto-copy-files .env --post-checkout "pnpm install"
|
|
|
1014
1014
|
|
|
1015
1015
|
- Prompts after `gw checkout` and `gw list` commands when stale worktrees are detected
|
|
1016
1016
|
- Only prompts once per 24 hours (cooldown)
|
|
1017
|
-
- **Never removes the `defaultBranch`
|
|
1017
|
+
- **Never removes the `defaultBranch` or `gw_root` worktrees** - they're protected
|
|
1018
1018
|
- Checks for worktrees older than `cleanThreshold` with:
|
|
1019
1019
|
- No uncommitted changes
|
|
1020
1020
|
- No staged files
|
|
1021
1021
|
- No unpushed commits
|
|
1022
|
-
- Shows
|
|
1022
|
+
- Shows list of branches before prompting:
|
|
1023
|
+
|
|
1023
1024
|
```
|
|
1024
|
-
๐งน Found
|
|
1025
|
+
๐งน Found stale worktrees to clean:
|
|
1026
|
+
|
|
1027
|
+
โ feat/old-feature (10 days old)
|
|
1028
|
+
โ fix/bug-123 (8 days old)
|
|
1029
|
+
|
|
1030
|
+
Clean 2 worktrees? [Y/n]:
|
|
1025
1031
|
```
|
|
1032
|
+
|
|
1026
1033
|
- Press Enter or `y` to remove them, or `n` to skip
|
|
1027
1034
|
- Shows brief summary after cleanup: `โ Removed 2 stale worktrees`
|
|
1028
1035
|
- Never interrupts or fails the main command
|