Skip to content

computeDiff

computeDiff(worktreePath, base, branch): Promise<DiffResult>

Defined in: src/diff.ts:243

Structured diff of a session’s branch against its (freshly fetched) base. Uses three-dot <baseRef>...HEAD = merge-base→HEAD = “what would merge”. Non-isolated sessions (no branch) return an empty result for the empty state.

string

string

string | null

Promise<DiffResult>