mirror of
https://github.com/stablyai/orca.git
synced 2026-10-26 08:02:44 +00:00
feat(editor): Changes view mode — in-tab HEAD-vs-working-tree diff (#1353)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -146,8 +146,13 @@ export class GitHandler {
|
||||
if (rel.startsWith('..') || path.isAbsolute(rel)) {
|
||||
throw new Error(`Path "${filePath}" resolves outside the worktree`)
|
||||
}
|
||||
const staged = params.staged as boolean
|
||||
return computeDiff(this.gitBuffer.bind(this), worktreePath, filePath, staged)
|
||||
return computeDiff(
|
||||
this.gitBuffer.bind(this),
|
||||
worktreePath,
|
||||
filePath,
|
||||
params.staged as boolean,
|
||||
params.compareAgainstHead as boolean | undefined
|
||||
)
|
||||
}
|
||||
|
||||
private async stage(params: Record<string, unknown>) {
|
||||
|
||||
Reference in New Issue
Block a user