Skip to content

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 ​

Properties ​

PropertyModifierTypeDescriptionOverridesInherited fromDefined in
__handleBrand?readonlyBivariantCallback<[handle: GitWorktreeHandle], void>Phantom type brand binding the hook to its compatible scope handle type.-BaseScopeRewindHookASTNode.__handleBrandcore/dist/ast/base/base-scope-rewind-hook-ast-node.d.ts:19
idreadonlystringLogical identifier of the rewind hook.-BaseScopeRewindHookASTNode.idcore/dist/ast/base/base-scope-rewind-hook-ast-node.d.ts:15
resetsRunOverlayreadonlytrueResets 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
typereadonly"git:discard-branch"Unique string-literal discriminant of the scope rewind hook node.-BaseScopeRewindHookASTNode.typecore/dist/ast/base/base-scope-rewind-hook-ast-node.d.ts:13

Released under the MIT License.