parseCommits static method

List<Commit> parseCommits(
  1. String logOutput
)

Creates a list of Commits from a git log output

This differs from Commit.parse as the logOutput expects multiple git log items.

See also Commit.parse.

Implementation

static List<Commit> parseCommits(String logOutput) {
  if (logOutput.trim().isEmpty) {
    return [];
  }
  return _commitLogsParser.parse(logOutput);
}