Skip to content

Function: executeGitKeepWorktreeHook() ​

ts
function executeGitKeepWorktreeHook(
   _node, 
   _input, 
   _ctx
): Promise<void>;

Defined in: git/src/executors/git-hooks-and-checks.ts:159

Executes a GitKeepWorktreeNode (git.keepWorktree()) rewind hook on input.handle.

Preserves the current working tree, HEAD, and baseRef in-place across .rewindTo() transitions.

Parameters ​

ParameterTypeDescription
_nodeGitKeepWorktreeNodePassive keep-worktree rewind hook AST node.
_inputRewindHookExecutionInput<GitWorktreeHandle>Rewind hook execution input.
_ctxStepExecutionContext<GitWorktreeHandle>Active step execution context.

Returns ​

Promise<void>

Resolves immediately without mutating the worktree.

Released under the MIT License.