@@ -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
6264export 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+
272286export 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