gitDir property
String
get
gitDir
Implementation
String get gitDir {
final gitDir = process.sync('git', ['rev-parse', '--git-dir']);
return switch (gitDir.stdout) {
final String out => out.trim(),
_ => throw Exception('Failed to get git directory'),
};
}