Interface: GitDiscardBranchNode
Defined in: core/dist/ast/domain/git-discard-branch-node.d.ts:10
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 | core/dist/ast/base/base-scope-rewind-hook-ast-node.d.ts:19 |
id | readonly | string | Logical identifier of the rewind hook. | - | BaseScopeRewindHookASTNode.id | core/dist/ast/base/base-scope-rewind-hook-ast-node.d.ts:15 |
resetsRunOverlay | readonly | true | Resets uncommitted run topology overlay mutations back to the run-start/prerequisite base. | BaseScopeRewindHookASTNode.resetsRunOverlay | - | core/dist/ast/domain/git-discard-branch-node.d.ts:12 |
type | readonly | "git:discard-branch" | Unique string-literal discriminant of the scope rewind hook node. | - | BaseScopeRewindHookASTNode.type | core/dist/ast/base/base-scope-rewind-hook-ast-node.d.ts:13 |