(
cwd?: string,
vcsType?: VcsSelection,
)
| 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, |
no test coverage detected