Skip to content

Function: createGitDiscardBranchBuilder() ​

ts
function createGitDiscardBranchBuilder(id?): AstBuilder<GitDiscardBranchNode>;

Defined in: git/src/builders/create-git-discard-branch-builder.ts:13

Creates a fluent AstBuilder<GitDiscardBranchNode> (git.discardBranch()).

Alias for createGitResetWorktreeBuilder compiling to a passive GitDiscardBranchNode (type: 'git:discard-branch', resetsRunOverlay: true).

Parameters ​

ParameterTypeDefault valueDescription
id?string'git-discard-branch'Optional custom identifier for the rewind hook node.

Returns ​

AstBuilder<GitDiscardBranchNode>

Immutable rewind hook builder instance.

Released under the MIT License.