legit 0.1.0

  • README.md
  • Installing
  • Versions
  • 32


Legit is a Git Library for Dart.


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

1. Depend on it

Add this to your package's pubspec.yaml file:

  legit: "^0.1.0"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:legit/legit.dart';
Version Uploaded Documentation Archive
0.1.0 May 10, 2016 Go to the documentation of legit 0.1.0 Download legit 0.1.0 archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
94 / 100
Reflects how tidy and up-to-date the package is. [more]
20 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: Flutter, other

Primary library: package:legit/legit.dart with components: io.


  • Fix lib/io.dart.

    Strong-mode analysis of lib/io.dart failed with the following error:

    line: 61 col: 35
    The argument type 'BetterProcessResult' can't be assigned to the parameter type 'Process'.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use legit.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.13.0
crypto ^0.9.1 0.9.2+1 2.0.2+1
path ^1.3.9 1.5.1
Transitive dependencies
charcode 1.1.1
convert 1.1.1 2.0.1
typed_data 1.1.5