feat: add git-backed session review modes (#17961)

This commit is contained in:
Shoubhit Dash
2026-03-19 19:29:29 +05:30
committed by GitHub
parent 84f60d97a0
commit e6f5214779
26 changed files with 1072 additions and 183 deletions

View File

@@ -8,7 +8,7 @@ import { Lock } from "../util/lock"
import { NamedError } from "@opencode-ai/util/error"
import z from "zod"
import { Glob } from "../util/glob"
import { git } from "@/util/git"
import { Git } from "@/git"
export namespace Storage {
const log = Log.create({ service: "storage" })
@@ -49,7 +49,7 @@ export namespace Storage {
}
if (!worktree) continue
if (!(await Filesystem.isDir(worktree))) continue
const result = await git(["rev-list", "--max-parents=0", "--all"], {
const result = await Git.run(["rev-list", "--max-parents=0", "--all"], {
cwd: worktree,
})
const [id] = result