getGitLastCommitHash method

Future<String> getGitLastCommitHash(
  1. String root
)

Implementation

Future<String> getGitLastCommitHash(String root) async {
  final result = await runCommand(root, 'git log -n 1 --pretty=format:"%H"');
  return result.first.stdout;
}