@gw-tools/gw 0.41.0 → 0.42.0-beta.40.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 +11 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -780,13 +780,14 @@ 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, enable real-time streaming output, and register TAB completions. 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
|
|
790
791
|
- **Multi-alias support**: Install for different command names (e.g., `gw-dev` for development)
|
|
791
792
|
|
|
792
793
|
```bash
|
|
@@ -1417,14 +1418,15 @@ gw prune --stale-only # Only clean git metadata (like git worktree prune)
|
|
|
1417
1418
|
```
|
|
1418
1419
|
|
|
1419
1420
|
**Comparison with `gw clean`:**
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
|
1423
|
-
|
|
|
1424
|
-
|
|
|
1425
|
-
|
|
|
1426
|
-
|
|
|
1427
|
-
|
|
|
1421
|
+
|
|
1422
|
+
| Feature | `gw clean` | `gw clean --use-autoclean-threshold` | `gw prune` |
|
|
1423
|
+
| ------------------------- | ---------------------- | ------------------------------------ | ---------------------- |
|
|
1424
|
+
| Age-based | No (all worktrees) | Yes (configurable threshold) | No (removes all clean) |
|
|
1425
|
+
| Safety checks | Yes | Yes | Yes |
|
|
1426
|
+
| Protects default branch | No | No | Yes |
|
|
1427
|
+
| Deletes orphan branches | No | No | Yes |
|
|
1428
|
+
| Runs `git worktree prune` | No | No | Yes |
|
|
1429
|
+
| Use case | Clean up finished work | Regular maintenance | Full cleanup |
|
|
1428
1430
|
|
|
1429
1431
|
#### lock
|
|
1430
1432
|
|