Function: createGitResetWorktreeBuilder()
ts
function createGitResetWorktreeBuilder(id?): AstBuilder<GitDiscardBranchNode>;Defined in: git/src/builders/create-git-reset-worktree-builder.ts:13
Creates a fluent AstBuilder<GitDiscardBranchNode> (git.resetWorktree()).
Compiles into a passive GitDiscardBranchNode (type: 'git:discard-branch', resetsRunOverlay: true) that restores the worktree to targetStepBaseScopeCheckpoint and resets the run topology overlay on rewind.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
id? | string | 'git-reset-worktree' | Optional custom identifier for the rewind hook node. |
Returns
AstBuilder<GitDiscardBranchNode>
Immutable rewind hook builder instance.