Interface: GitDiscardBranchNode
Defined in: ast/domain/git-discard-branch-node.ts:11
Passive AST node resetting a worktree to targetStepBaseScopeCheckpoint and clearing uncommitted run topology overlay mutations during .rewindTo() (git.resetWorktree / git.discardBranch).
Restores both the physical git working tree and the run's Copy-on-Write topology overlay back to the checkpoint recorded at the entry of the rewind target step.
Extends
BaseScopeRewindHookASTNode<"git:discard-branch",GitWorktreeHandle>
Properties
| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
__handleBrand? | readonly | BivariantCallback<[handle: GitWorktreeHandle], void> | Phantom type brand binding the hook to its compatible scope handle type. | - | BaseScopeRewindHookASTNode.__handleBrand | ast/base/base-scope-rewind-hook-ast-node.ts:20 |
id | readonly | string | Logical identifier of the rewind hook. | - | BaseScopeRewindHookASTNode.id | ast/base/base-scope-rewind-hook-ast-node.ts:16 |
resetsRunOverlay | readonly | true | Resets uncommitted run topology overlay mutations back to the run-start/prerequisite base. | BaseScopeRewindHookASTNode.resetsRunOverlay | - | ast/domain/git-discard-branch-node.ts:14 |
type | readonly | "git:discard-branch" | Unique string-literal discriminant of the scope rewind hook node. | - | BaseScopeRewindHookASTNode.type | ast/base/base-scope-rewind-hook-ast-node.ts:14 |