MCPcopy Create free account
hub / github.com/backnotprop/plannotator / getContextWithProvider

Function getContextWithProvider

packages/shared/vcs-core.ts:370–376  ·  view source on GitHub ↗
(
    cwd?: string,
    vcsType?: VcsSelection,
  )

Source from the content-addressed store, hash-verified

368 }
369
370 async function getContextWithProvider(
371 cwd?: string,
372 vcsType?: VcsSelection,
373 ): Promise<{ provider: VcsProvider; gitContext: GitContext }> {
374 const provider = await getProviderForSelection(vcsType, cwd);
375 return { provider, gitContext: await provider.getContext(cwd) };
376 }
377
378 function resolveRequestedDiffType(
379 provider: VcsProvider,

Callers 2

getVcsContextFunction · 0.85
prepareLocalReviewDiffFunction · 0.85

Calls 2

getProviderForSelectionFunction · 0.85
getContextMethod · 0.65

Tested by

no test coverage detected