mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(walkthrough): plan-then-explain generation with selectable diff sources
This commit is contained in:
1 parent
aeea96b466
commit
88b3543dc1
35 files changed
+2583
-609
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user