show method

Future<List<int>> show({
  1. required String ref,
  2. required String filePath,
})

Implementation

Future<List<int>> show({required String ref, required String filePath}) async {
  final pr = await myRunGit(
    ['show', '$ref:$filePath'],
    processWorkingDir: directory,
    // to allow binary
    stdoutEncoding: null,
    stderrEncoding: null,
  );

  return pr.stdout as List<int>;
}