@gw-tools/gw 0.54.0 → 0.55.0-beta.51.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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -361,7 +361,7 @@ gw init --root /path/to/your/repo.git
|
|
|
361
361
|
- **hooks.checkout.pre**: Array of commands to run before creating a worktree
|
|
362
362
|
- **hooks.checkout.post**: Array of commands to run after creating a worktree
|
|
363
363
|
- **cleanThreshold**: Number of days before worktrees are considered stale for `gw clean` (optional, defaults to 7, set via `gw init --clean-threshold`)
|
|
364
|
-
- **autoClean**:
|
|
364
|
+
- **autoClean**: Silently remove stale worktrees in the background when running `gw checkout` or `gw list` (optional, defaults to false, set via `gw init --auto-clean`)
|
|
365
365
|
- **updateStrategy**: Default strategy for `gw update` command: "merge" or "rebase" (optional, defaults to "merge", set via `gw init --update-strategy`)
|
|
366
366
|
- **lastAutoCleanTime**: Internal timestamp tracking last auto-cleanup run (managed automatically, do not edit manually)
|
|
367
367
|
|
|
@@ -931,7 +931,7 @@ gw init [repository-url] [directory] [options]
|
|
|
931
931
|
- `--pre-checkout <command>`: Command to run before `gw checkout` creates a worktree (can be specified multiple times)
|
|
932
932
|
- `--post-checkout <command>`: Command to run after `gw checkout` creates a worktree (can be specified multiple times)
|
|
933
933
|
- `--clean-threshold <days>`: Number of days before worktrees are considered stale for `gw clean` (default: 7)
|
|
934
|
-
- `--auto-clean`: Enable
|
|
934
|
+
- `--auto-clean`: Enable silent background cleanup of stale worktrees (runs non-blocking on `gw checkout` and `gw list` with 24-hour cooldown)
|
|
935
935
|
- `--update-strategy <strategy>`: Set default update strategy: 'merge' or 'rebase' (default: merge)
|
|
936
936
|
- `-h, --help`: Show help message
|
|
937
937
|
|