Skip to content

Interface: GitWorktreeHandle ​

Defined in: core/dist/ast/domain/git-worktree-handle.d.ts:7

Runtime scope handle for an isolated Copy-on-Write Git worktree (git.cowWorktree).

Tracks the physical worktreePath, isolated gitDirPath, immutable baseRef, stacked baseBranch, and any unresolvedConflictPaths mapped to their conflict-time digests.

Properties ​

PropertyModifierTypeDescriptionDefined in
baseBranchreadonlystringTarget upstream or prerequisite base branch name (such as 'main' or 'fix/#102').core/dist/ast/domain/git-worktree-handle.d.ts:15
baseRefreadonlystringBase commit SHA against which working-tree diffs and squashes are computed.core/dist/ast/domain/git-worktree-handle.d.ts:13
branchName?readonlystringOptional feature branch name pushed for this worktree.core/dist/ast/domain/git-worktree-handle.d.ts:17
gitDirPathreadonlystringPath to the worktree's isolated .git/worktrees/<id> metadata directory.core/dist/ast/domain/git-worktree-handle.d.ts:11
headRef?readonlystringOptional latest synthesized or committed HEAD SHA.core/dist/ast/domain/git-worktree-handle.d.ts:19
unresolvedConflictPathsreadonlyReadonly<Record<string, string>>Conflicted file paths mapped to their conflict-materialized ${mode}:${sha256} digests ('MISSING' if absent).core/dist/ast/domain/git-worktree-handle.d.ts:21
worktreePathreadonlystringAbsolute or host-relative filesystem path to the isolated worktree working directory.core/dist/ast/domain/git-worktree-handle.d.ts:9

Released under the MIT License.