initCachedGit function
Cached variant of initGit: same result, but built once per isolate.
Implementation
Future<void> initCachedGit(
Directory testDir, {
bool isEolLfEnabled = true,
}) async {
await initCachedRepo(
testDir,
key: 'gg_git/initGit(isEolLfEnabled: $isEolLfEnabled)',
build: (repo) => initGit(repo, isEolLfEnabled: isEolLfEnabled),
);
}