@gw-tools/gw 0.30.3 โ†’ 0.31.0

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.
Files changed (2) hide show
  1. package/README.md +10 -3
  2. 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` worktree** - it's protected as the source for file syncing
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 interactive prompt when stale worktrees are found:
1022
+ - Shows list of branches before prompting:
1023
+
1023
1024
  ```
1024
- ๐Ÿงน Found 2 stale worktrees (7+ days old). Clean them up? [Y/n]:
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gw-tools/gw",
3
- "version": "0.30.3",
3
+ "version": "0.31.0",
4
4
  "description": "A command-line tool for managing git worktrees - copy files between worktrees with ease",
5
5
  "keywords": [
6
6
  "git",