Skip to content

Function: createGitKeepWorktreeBuilder() ​

ts
function createGitKeepWorktreeBuilder(id?): AstBuilder<GitKeepWorktreeNode>;

Defined in: git/src/builders/create-git-keep-worktree-builder.ts:13

Creates a fluent AstBuilder<GitKeepWorktreeNode> (git.keepWorktree()).

Compiles into a passive GitKeepWorktreeNode (type: 'git:keep-worktree', resetsRunOverlay: false) that preserves the active worktree and uncommitted topology overlay across a .rewindTo() signal.

Parameters ​

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

Returns ​

AstBuilder<GitKeepWorktreeNode>

Immutable rewind hook builder instance.

Released under the MIT License.