legit 0.2.0

Dart native
Flutter Android iOS

Sane Git Library

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}");
  }
}