initGit function

Future<void> initGit(
  1. Directory testDir, {
  2. bool isEolLfEnabled = true,
})

Init git repository in test directory

Implementation

Future<void> initGit(Directory testDir, {bool isEolLfEnabled = true}) async {
  await initLocalGit(testDir);

  if (isEolLfEnabled) {
    await enableEolLf(testDir);
  }
}