@gw-tools/gw 0.42.0-beta.40.1 → 0.42.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.
- package/README.md +9 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -780,14 +780,13 @@ If not configured, defaults to "main" branch and "merge" strategy.
|
|
|
780
780
|
|
|
781
781
|
### install-shell
|
|
782
782
|
|
|
783
|
-
Output shell integration code for the `gw cd` command
|
|
783
|
+
Output shell integration code for the `gw cd` command and enable real-time streaming output. The shell code is always generated from the current binary, so updates happen automatically.
|
|
784
784
|
|
|
785
785
|
Shell integration provides:
|
|
786
786
|
|
|
787
787
|
- **Navigation support**: `gw cd <worktree>` navigates directly to worktrees
|
|
788
788
|
- **Real-time streaming**: Command output streams as it's generated (no buffering)
|
|
789
789
|
- **Auto-navigation**: Automatically navigate after `gw checkout` and `gw remove` operations
|
|
790
|
-
- **TAB completions**: Complete subcommands, branch names, worktree names, and flags
|
|
791
790
|
- **Multi-alias support**: Install for different command names (e.g., `gw-dev` for development)
|
|
792
791
|
|
|
793
792
|
```bash
|
|
@@ -1418,15 +1417,14 @@ gw prune --stale-only # Only clean git metadata (like git worktree prune)
|
|
|
1418
1417
|
```
|
|
1419
1418
|
|
|
1420
1419
|
**Comparison with `gw clean`:**
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
|
1424
|
-
|
|
|
1425
|
-
|
|
|
1426
|
-
|
|
|
1427
|
-
|
|
|
1428
|
-
|
|
|
1429
|
-
| Use case | Clean up finished work | Regular maintenance | Full cleanup |
|
|
1420
|
+
| Feature | `gw clean` | `gw clean --use-autoclean-threshold` | `gw prune` |
|
|
1421
|
+
|---------|-----------|-------------------------------------|-------------------|
|
|
1422
|
+
| Age-based | No (all worktrees) | Yes (configurable threshold) | No (removes all clean) |
|
|
1423
|
+
| Safety checks | Yes | Yes | Yes |
|
|
1424
|
+
| Protects default branch | No | No | Yes |
|
|
1425
|
+
| Deletes orphan branches | No | No | Yes |
|
|
1426
|
+
| Runs `git worktree prune` | No | No | Yes |
|
|
1427
|
+
| Use case | Clean up finished work | Regular maintenance | Full cleanup |
|
|
1430
1428
|
|
|
1431
1429
|
#### lock
|
|
1432
1430
|
|