extensions/git/src/git.ts/findGit
export async function findGit(hints: string[], onValidate: (path: string) => boolean): Promise<IGit> {
	for (const hint of hints) {
		try {
			return await findSpecificGit(hint, onValidate);
		} catch {
			// noop
		}
	}

	try {
		switch (process.platform) {
			case 'darwin': return await findGitDarwin(onValidate);
			case 'win32': return await findGitWin32(onValidate);
			default: return await findSpecificGit('git', onValidate);
		}
	} catch {
		// noop
	}

	throw new Error('Git installation not found.');
}