gitShow static method
Implementation
static Future<String> gitShow(String ref, String? root, String path) async {
final result = await Process.run(
'git',
[
'show',
'$ref:$path',
],
workingDirectory: root,
);
if (result.exitCode != 0) {
throw GitException('Failed to show ref $ref:$path: ${result.stderr.toString()}');
}
return result.stdout.toString().trim();
}