Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): parallelize worktree checkout and narrow the bootstrap fetch #9039

ClosedStiensWout(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/9039/headopened View on GitHub

Showing 6 changed files with 60 additions and 1 deletion (loading 3).

x
0 of 6 viewed, 6 left
1 addition and 0 deletionsapps/server/src/git/GitWorkflowService.tsModified
View file
@@ -68,6 +68,7 @@
readonly fetchRemote: (input: {
readonly cwd: string;
readonly remoteName: string;
+ readonly refName: string;
}) => Effect.Effect<void, GitCommandError>;
readonly remoteExists: (input: {
readonly cwd: string;
2 additions and 0 deletionsapps/server/src/vcs/GitVcsDriver.tsModified
View file
@@ -197,6 +197,8 @@
export interface GitFetchRemoteInput {
cwd: string;
remoteName: string;
+ // Branch to narrow the fetch to, in either `main` or `<remote>/main` form.
+ refName: string;
​
export interface GitRemoteExistsInput {
57 additions and 1 deletionapps/server/src/vcs/GitVcsDriverCore.test.tsModified
View file
@@ -1663,7 +1663,7 @@
assert.notEqual(beforeFetch, remoteHead);
const driver = yield* GitVcsDriver.GitVcsDriver;
- yield* driver.fetchRemote({ cwd, remoteName: "origin" });