Skip to content

Function: createGitCowWorktreeBuilder() ​

ts
function createGitCowWorktreeBuilder(options?): GitCowWorktreeBuilder;

Defined in: git/src/builders/create-git-cow-worktree-builder.ts:33

Creates a fluent GitCowWorktreeBuilder (git.cowWorktree(options?)).

Defaults repo to '.' and dir to '.paraharness/worktree', and validates that both are non-empty strings at declaration time without performing any filesystem I/O.

Parameters ​

ParameterTypeDescription
options?GitCowWorktreeOptionsOptional repository path, worktree base directory, and builder state.

Returns ​

GitCowWorktreeBuilder

Immutable fluent worktree scope builder.

Throws ​

If options.repo or options.dir is empty.

Released under the MIT License.