Skip to content

Function: createGitSnapshotAndResetBuilder() ​

ts
function createGitSnapshotAndResetBuilder(id?): AstBuilder<GitSnapshotAndResetNode>;

Defined in: git/src/builders/create-git-snapshot-and-reset-builder.ts:14

Creates a fluent AstBuilder<GitSnapshotAndResetNode> (git.snapshotAndReset()).

Compiles into a passive GitSnapshotAndResetNode (type: 'git:snapshot-and-reset') that snapshots an aborted worktree to refs/harness/aborted/<run-id>/<stepExecId> and resets to handle.baseRef.

Parameters ​

ParameterTypeDefault valueDescription
id?string'git-snapshot-and-reset'Optional custom identifier for the abort hook node.

Returns ​

AstBuilder<GitSnapshotAndResetNode>

Immutable abort hook builder instance.

Released under the MIT License.