Skip to content

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 ​

Properties ​

PropertyModifierTypeDescriptionOverridesInherited fromDefined in
__handleBrand?readonlyBivariantCallback<[handle: GitWorktreeHandle], void>Phantom type brand binding the hook to its compatible scope handle type.-BaseScopeRewindHookASTNode.__handleBrandast/base/base-scope-rewind-hook-ast-node.ts:20
idreadonlystringLogical identifier of the rewind hook.-BaseScopeRewindHookASTNode.idast/base/base-scope-rewind-hook-ast-node.ts:16
resetsRunOverlayreadonlytrueResets uncommitted run topology overlay mutations back to the run-start/prerequisite base.BaseScopeRewindHookASTNode.resetsRunOverlay-ast/domain/git-discard-branch-node.ts:14
typereadonly"git:discard-branch"Unique string-literal discriminant of the scope rewind hook node.-BaseScopeRewindHookASTNode.typeast/base/base-scope-rewind-hook-ast-node.ts:14

Released under the MIT License.