@gw-tools/gw 0.20.1 → 0.20.3
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 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1063,7 +1063,7 @@ The clean command:
|
|
|
1063
1063
|
- By default, only removes worktrees with NO uncommitted changes
|
|
1064
1064
|
- By default, only removes worktrees with NO unpushed commits
|
|
1065
1065
|
- Always prompts for confirmation before deletion
|
|
1066
|
-
- Main/bare repository worktrees are never removed
|
|
1066
|
+
- Main/bare repository, default branch, and gw_root worktrees are never removed
|
|
1067
1067
|
- Use `--force` to bypass safety checks (use with caution)
|
|
1068
1068
|
|
|
1069
1069
|
**Configuration:**
|
|
@@ -1117,6 +1117,13 @@ gw remove <worktree>
|
|
|
1117
1117
|
gw rm <worktree>
|
|
1118
1118
|
```
|
|
1119
1119
|
|
|
1120
|
+
**Protected Branches:**
|
|
1121
|
+
|
|
1122
|
+
The following worktrees are protected and cannot be removed:
|
|
1123
|
+
- Default branch (configured in `.gw/config.json`, typically `main`)
|
|
1124
|
+
- `gw_root` (bare repository root branch)
|
|
1125
|
+
- Bare repository worktree
|
|
1126
|
+
|
|
1120
1127
|
**Examples:**
|
|
1121
1128
|
|
|
1122
1129
|
```bash
|
|
@@ -1167,6 +1174,7 @@ gw prune [options]
|
|
|
1167
1174
|
**Safety Features** (in clean mode):
|
|
1168
1175
|
|
|
1169
1176
|
- Default branch is protected (configured in `.gw/config.json`)
|
|
1177
|
+
- gw_root branch is protected (bare repository root)
|
|
1170
1178
|
- Current worktree cannot be removed
|
|
1171
1179
|
- Bare repository is never removed
|
|
1172
1180
|
- Confirmation prompt before removal (defaults to yes, just press Enter to confirm)
|