Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / GitWorktreeProvider

Class: GitWorktreeProvider ​

Defined in: packages/core/dist/index.d.ts

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/dist/index.d.ts

Parameters ​

ParameterType
options?GitWorktreeProviderOptions

Returns ​

GitWorktreeProvider

Accessors ​

pinnedWorktrees ​

Get Signature ​

ts
get pinnedWorktrees(): ReadonlySet<string>;

Defined in: packages/core/dist/index.d.ts

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/dist/index.d.ts

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