getCommitEditMsg static method

String getCommitEditMsg()

get commit edit msg from '.git/COMMIT_EDITMSG'

Implementation

static String getCommitEditMsg() {
  var rootDir = Directory.current;
  var myFile = File(Utils.uri('${rootDir.path}/.git/COMMIT_EDITMSG'));
  var commitMsg = myFile.readAsStringSync();
  return commitMsg;
}