dubstack 0.5.1 → 0.6.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 +113 -0
- package/dist/index.js +956 -114
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,6 +67,14 @@ If you have `gt` muscle memory, use this as a fast map:
|
|
|
67
67
|
| `gt info` | `dub info` |
|
|
68
68
|
| `gt pr` | `dub pr` |
|
|
69
69
|
| `gt restack` | `dub restack` |
|
|
70
|
+
| `gt continue` | `dub continue` |
|
|
71
|
+
| `gt abort` | `dub abort` |
|
|
72
|
+
| `gt track --parent` | `dub track --parent` |
|
|
73
|
+
| `gt untrack` | `dub untrack` |
|
|
74
|
+
| `gt delete` | `dub delete` |
|
|
75
|
+
| `gt parent` | `dub parent` |
|
|
76
|
+
| `gt children` | `dub children` |
|
|
77
|
+
| `gt trunk` | `dub trunk` |
|
|
70
78
|
| `gt undo` | `dub undo` |
|
|
71
79
|
|
|
72
80
|
## Quick Start
|
|
@@ -201,6 +209,15 @@ Render tracked stacks as an ASCII tree.
|
|
|
201
209
|
dub log
|
|
202
210
|
dub ls
|
|
203
211
|
dub l
|
|
212
|
+
|
|
213
|
+
# show only current stack
|
|
214
|
+
dub log --stack
|
|
215
|
+
|
|
216
|
+
# show all stacks explicitly
|
|
217
|
+
dub log --all
|
|
218
|
+
|
|
219
|
+
# reverse branch ordering for quick top-down scan
|
|
220
|
+
dub log --reverse
|
|
204
221
|
```
|
|
205
222
|
|
|
206
223
|
### Navigation: `dub up`, `dub down`, `dub top`, `dub bottom`
|
|
@@ -239,6 +256,98 @@ dub info feat/auth-login
|
|
|
239
256
|
dub branch info
|
|
240
257
|
```
|
|
241
258
|
|
|
259
|
+
### Orientation: `dub parent`, `dub children`, `dub trunk`
|
|
260
|
+
|
|
261
|
+
Quickly inspect where the current branch sits in its tracked stack.
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
dub parent # direct parent of current branch
|
|
265
|
+
dub children # direct children
|
|
266
|
+
dub trunk # stack root/trunk branch
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
All three commands accept an optional branch argument:
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
dub parent feat/auth-login
|
|
273
|
+
dub children feat/auth-types
|
|
274
|
+
dub trunk feat/auth-tests
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
If branch metadata is missing, these commands print a remediation path using `dub track`.
|
|
278
|
+
|
|
279
|
+
### `dub track [branch] [--parent <branch>]`
|
|
280
|
+
|
|
281
|
+
Track an existing local branch or re-parent a tracked branch.
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
# track current branch
|
|
285
|
+
dub track
|
|
286
|
+
|
|
287
|
+
# track explicit branch
|
|
288
|
+
dub track feat/auth-login --parent feat/auth-types
|
|
289
|
+
|
|
290
|
+
# repair parent metadata
|
|
291
|
+
dub track feat/auth-login --parent main
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
Notes:
|
|
295
|
+
- If `--parent` is omitted, DubStack tries to infer a safe default.
|
|
296
|
+
- In interactive shells, DubStack prompts when parent choice is ambiguous.
|
|
297
|
+
- Re-parenting can require follow-up rebasing via `dub restack`.
|
|
298
|
+
|
|
299
|
+
### `dub untrack [branch] [--downstack]`
|
|
300
|
+
|
|
301
|
+
Remove branch metadata from DubStack without deleting local git branches.
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
# untrack current branch only
|
|
305
|
+
dub untrack
|
|
306
|
+
|
|
307
|
+
# untrack explicit branch and descendants
|
|
308
|
+
dub untrack feat/auth-login --downstack
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
Use this when branch exists locally but should no longer participate in stack operations.
|
|
312
|
+
|
|
313
|
+
### `dub delete [branch] [--upstack|--downstack] [--force] [--quiet]`
|
|
314
|
+
|
|
315
|
+
Delete local branches with stack-aware expansion and metadata repair.
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
# delete one branch (with confirmation)
|
|
319
|
+
dub delete feat/auth-login
|
|
320
|
+
|
|
321
|
+
# delete branch and descendants
|
|
322
|
+
dub delete feat/auth-login --upstack
|
|
323
|
+
|
|
324
|
+
# delete branch and ancestors toward trunk
|
|
325
|
+
dub delete feat/auth-login --downstack
|
|
326
|
+
|
|
327
|
+
# fully non-interactive destructive delete
|
|
328
|
+
dub delete feat/auth-login --upstack --force --quiet
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
Flags:
|
|
332
|
+
- `--upstack`: include descendants
|
|
333
|
+
- `--downstack`: include ancestors (excluding root)
|
|
334
|
+
- `-f, --force`: force delete unmerged branches
|
|
335
|
+
- `-q, --quiet`: skip confirmation prompt
|
|
336
|
+
|
|
337
|
+
### `dub continue` / `dub abort`
|
|
338
|
+
|
|
339
|
+
Unified recovery pair for interrupted restacks and rebases.
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
# continue active restack/rebase
|
|
343
|
+
dub continue
|
|
344
|
+
|
|
345
|
+
# abort active restack/rebase
|
|
346
|
+
dub abort
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
Use these when the CLI reports conflicts or an in-progress operation.
|
|
350
|
+
|
|
242
351
|
### `dub submit` / `dub ss`
|
|
243
352
|
|
|
244
353
|
Push stack branches and create or update PRs.
|
|
@@ -370,6 +479,10 @@ dub restack --continue
|
|
|
370
479
|
| `Not authenticated with GitHub` | Run `gh auth login` |
|
|
371
480
|
| Branch not part of stack | Create via `dub create` or run from tracked branch |
|
|
372
481
|
| Restack conflict | Resolve files, `git add`, `dub restack --continue` |
|
|
482
|
+
| Rebase/restack interrupted | Use `dub continue` to resume, `dub abort` to cancel |
|
|
483
|
+
| Branch not tracked | Run `dub track <branch> --parent <parent>` |
|
|
484
|
+
| Need metadata-only removal | Use `dub untrack` (or `--downstack`) |
|
|
485
|
+
| Need stack-aware branch deletion | Use `dub delete` with `--upstack` / `--downstack` |
|
|
373
486
|
| Sync skipped branch | Re-run with `--interactive` or `--force` as appropriate |
|
|
374
487
|
| Wrong operation during create/restack | Use `dub undo` (single-level) |
|
|
375
488
|
|