Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 402 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 402 Bytes

Legit

Legit is a Git Library for Dart.

Examples

List Commits

import "package:legit/legit.dart";

main() async {
  var git = new GitClient.forCurrentDirectory();

  var commits = await git.listCommits();
  for (var commit in commits) {
    print("- " + commit.message);
    print("  By: ${commit.author.name} <${commit.author.email}>");
    print("  SHA: ${commit.sha}");
  }
}