printCommit method

void printCommit(
  1. GitRepository repo,
  2. GitCommit commit,
  3. GitHash sha
)

Implementation

void printCommit(GitRepository repo, GitCommit commit, GitHash sha) {
  var author = commit.author;

  print('commit $sha');
  print('Author: ${author.name} <${author.email}>');
  print('Date:   ${author.date.toIso8601String()}');
  print('');
  for (var line in LineSplitter.split(commit.message)) {
    print('    $line');
  }
  print('');
}