MCPcopy
hub / github.com/generalaction/emdash / assertOpen

Method assertOpen

packages/core/src/git/git-runtime.ts:296–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

294 }
295
296 private assertOpen(): void {
297 if (this.disposeRequested) {
298 throw new Error('GitRuntime disposed');
299 }
300 }
301
302 private async disposeIfIdle(): Promise<void> {
303 if (!this.disposeRequested) return;

Callers 5

inspectPathMethod · 0.95
ensureRepositoryMethod · 0.95
cloneRepositoryMethod · 0.95
openRepositoryMethod · 0.95
openWorktreeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected