Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / GitWorktreeProvider

Class: GitWorktreeProvider

Defined in: packages/core/src/tools/isolation.ts:56

The shipped git worktree lifecycle. A non-git host is a typed ConfigError at acquire.

Implements

Constructors

Constructor

ts
new GitWorktreeProvider(options?): GitWorktreeProvider;

Defined in: packages/core/src/tools/isolation.ts:63

Parameters

ParameterType
options?GitWorktreeProviderOptions

Returns

GitWorktreeProvider

Accessors

pinnedWorktrees

Get Signature

ts
get pinnedWorktrees(): ReadonlySet<string>;

Defined in: packages/core/src/tools/isolation.ts:73

Trees currently retained under the pin cap.

Returns

ReadonlySet&lt;string&gt;

Methods

acquire()

ts
acquire(spawn): Promise<{
  cwd: string;
  collect: Promise<{
     files: string[];
     patch: Bytes;
  }>;
  dispose: Promise<void>;
}>;

Defined in: packages/core/src/tools/isolation.ts:77

Parameters

ParameterType
spawn{ ref?: string; runId: string; spanId: string; }
spawn.ref?string
spawn.runIdstring
spawn.spanIdstring

Returns

Promise<{ cwd: string; collect: Promise<{ files: string[]; patch: Bytes; }>; dispose: Promise&lt;void&gt;; }>

Implementation of

IsolationProvider.acquire