GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): parallel worktree launches no longer fail on .git/config… · aorwall/t3code@3b22620

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src
    • sourceControl
      • ServerSourceControlHost.ts
    • vcs
      • GitVcsDriver.ts
      • GitVcsDriverCore.test.ts
      • GitVcsDriverCore.ts
  • packages
    • contracts/src
      • git.ts
    • source-control-core/src/server
      • SourceControlHost.ts
    • source-control-gitcafe/src/server
      • GitCafeSourceControlProvider.ts
    • source-control-github/src/server
      • GitHubSourceControlProvider.test.ts
      • GitHubSourceControlProvider.ts
    • source-control-testing/src
      • TestSourceControlHost.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/sourceControl/ServerSourceControlHost.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/sourceControl/ServerSourceControlHost.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export const layer = Layer.effect(
2929
fetchRemoteBranch: git.fetchRemoteBranch,
3030
fetchRemoteTrackingBranch: git.fetchRemoteTrackingBranch,
3131
setBranchUpstream: git.setBranchUpstream,
32+
createBranch: git.createBranch,
33+
writeConfigValue: git.writeConfigValue,
3234
switchRef: git.switchRef,
3335
},
3436
});
Collapse file

‎apps/server/src/vcs/GitVcsDriver.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/vcs/GitVcsDriver.ts
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export interface ExecuteGitInput {
5757
/** With appendTruncationMarker, line callbacks continue beyond the buffer cap for progress-only consumers. */
5858
readonly keepLineCallbacksAfterTruncation?: boolean;
5959
readonly progress?: ExecuteGitProgress;
60+
/** Writes .git/config, which every worktree shares and Git locks without waiting. */
61+
readonly writesSharedConfig?: boolean;
6062
}
6163

6264
export interface ExecuteGitResult {
@@ -269,6 +271,18 @@ export interface GitFetchWorktreeBaseCommitInput {
269271
refName: string;
270272
}
271273

274+
export interface GitCreateBranchInput {
275+
readonly cwd: string;
276+
readonly branch: string;
277+
readonly startPoint: string;
278+
}
279+
280+
export interface GitWriteConfigValueInput {
281+
readonly cwd: string;
282+
readonly key: string;
283+
readonly value: string;
284+
}
285+
272286
export interface GitSetBranchUpstreamInput {
273287
cwd: string;
274288
branch: string;
@@ -387,6 +401,11 @@ export class GitVcsDriver extends Context.Service<
387401
readonly setBranchUpstream: (
388402
input: GitSetBranchUpstreamInput,
389403
) => Effect.Effect<void, GitCommandError>;
404+
/** Tracks the start point like `git branch` does. */
405+
readonly createBranch: (input: GitCreateBranchInput) => Effect.Effect<void, GitCommandError>;
406+
readonly writeConfigValue: (
407+
input: GitWriteConfigValueInput,
408+
) => Effect.Effect<void, GitCommandError>;
390409
readonly removeWorktree: (
391410
input: VcsRemoveWorktreeInput,
392411
) => Effect.Effect<void, GitCommandError>;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.