feat(walkthrough): plan-then-explain generation with selectable diff sources

This commit is contained in:
Chris Scott committed 2026-10-08 15:53:49 -04:00
1 parent aeea96b466
commit 88b3543dc1
35 files changed
+2583 -609

No files matched your search

+20
View File
@@ -738,6 +738,26 @@ export class GitService {
)
}
async fetchRemoteRef(
repo: { id?: number; repoUrl?: string; fullPath: string },
remote: string,
refspec: string,
database: Database,
timeoutMs?: number,
): Promise<void> {
await this.withRemoteAuth(
repo,
async (env) => {
await executeCommand(['git', '-C', repo.fullPath, 'fetch', '--no-tags', remote, refspec], {
env,
silent: true,
timeout: timeoutMs,
})
},
{ database, silent: true }
)
}
async pull(repoId: number, database: Database): Promise<string> {
const repo = getRepoById(database, repoId)
if (!repo) {