headCommit function

Future<bool> headCommit({
  1. required String commitMessage,
})

Implementation

Future<bool> headCommit({required String commitMessage}) async {
  final process = await Process.start("git", ['commit', '-m', commitMessage]);
  await stdout.addStream(process.stdout);
  await stderr.addStream(process.stderr);
  await process.exitCode;
  return checkProcessCode(await process.exitCode);
}