isGitDirectory function

Future<bool> isGitDirectory()

Implementation

Future<bool> isGitDirectory() async {
  final gitDirectory = Directory('.git');
  final exists = await gitDirectory.exists();
  return exists;
}