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.
Parameters
Section titled “Parameters”worktreePath
Section titled “worktreePath”string
string
branch
Section titled “branch”string | null
Returns
Section titled “Returns”Promise<DiffResult>