gitq continue
Resumes a cascade that paused on a conflict, after you've resolved it and staged the result.
Usage
bash
gitq continue [--stack <name>]
Flags
| flag | meaning |
|---|---|
--stack <name> | Which parked cascade to resume, when more than one stack is parked. Read directly from ctx.flags.stack, not resolved through the usual --stack rule. See Global flags. |
Behavior
- Finds the parked lease to resume (
findParkedLease,src/cli/slots.ts:99-110). Refuses withnothing to continue (no parked cascade)if nothing is parked,multiple parked cascades; pass --stack to pick oneif more than one is and--stackwasn't given, orno parked cascade for that stackif--stacknames a stack that isn't parked. - Reads the pause file out of that lease's work slot; refuses with
lease found but no pause file in <slotPath>; run: gitq abortif it is missing. - Refuses with
paused stack <id> no longer existsif the stack the pause belongs to was untracked in the meantime. - Runs
git rebase --continuein the tree the pause names (pauseInfo.worktreePath ?? pauseInfo.treePath), which is not necessarily wherever you invokedgitq continuefrom, then keeps walkingpauseInfo.remainingBranches. - If the same branch conflicts again, it re-pauses with a refreshed conflict list and
commitIndex/commitTotalfilled in from git's own rebase state, rather than reporting a failure. - Once the walk finishes, or fails outright, it detaches the work slot's HEAD and releases the lease; if it pauses again (exit
2), the lease stays parked instead. - Its own operation-log entry is recorded under
operation: "sync", the same typesyncitself uses; there is no separate"continue"value in theOperationTypeunion (src/core/operation-log.ts:9-18;withOperationLog(ctx, stack, 'sync', ...),src/cli/commands/cascade.ts:87). Logged on exit0or1, never on2, the same overridesyncuses (src/cli/commands/cascade.ts:101). - Under
--json, emits the same shared cascade shape assync:paused(with a refreshedpauseInfo) if it conflicts again, orcompleted(withresultsandrebasedBranches) once the walk finishes. See JSON output.
Exit codes
0: completed, every attempted branch succeeded.1: nothing parked, multiple parked without--stack, missing pause file, stack no longer tracked,git rebase --continueitself failed with no conflicted files left, or completed with at least one failed branch.2: paused again, on the same branch or the next one.
See Exit codes for the general contract.
See also
- The pause protocol: the resolve loop this command drives.
- Resolve a conflict: a real run, including a branch that conflicts twice.
gitq sync,gitq abort, Pause file.