refactor(coding-agent): migrated git operations to centralized utils module
- Extracted git operations from ControlledGit class into centralized utils/git module with 1276 lines of typed command wrappers. - Replaced dependency injection of ControlledGit instances with direct cwd string parameters across commit agent tools and workflows. - Migrated all git command execution from inline shell calls and custom helpers to structured git module API (diff, status, branch, worktree, patch, etc.). - Removed ControlledGit class, operations.ts, and helper functions (findGitHeadPath, mergeStdoutStderr, joinPatch) now provided by git module. - Exported git utilities from main package entry point for extension and plugin use.
This commit is contained in:
@@ -32,7 +32,6 @@ describe("commit agent prompt attribution", () => {
|
||||
|
||||
await runCommitAgentSession({
|
||||
cwd: "/tmp",
|
||||
git: {} as never,
|
||||
model,
|
||||
settings: Settings.isolated(),
|
||||
modelRegistry: {} as never,
|
||||
|
||||
Reference in New Issue
Block a user