Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevmoo/git
A dart wrapper around the git command line binary
https://github.com/kevmoo/git
dart git
Last synced: 5 days ago
JSON representation
A dart wrapper around the git command line binary
- Host: GitHub
- URL: https://github.com/kevmoo/git
- Owner: kevmoo
- License: bsd-2-clause
- Created: 2014-02-15T20:02:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-12-01T16:42:40.000Z (26 days ago)
- Last Synced: 2024-12-16T03:04:53.595Z (12 days ago)
- Topics: dart, git
- Language: Dart
- Homepage: https://pub.dev/packages/git
- Size: 12.4 MB
- Stars: 133
- Watchers: 5
- Forks: 20
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![Pub Package](https://img.shields.io/pub/v/git.svg)](https://pub.dev/packages/git)
[![CI](https://github.com/kevmoo/git/workflows/CI/badge.svg?branch=master)](https://github.com/kevmoo/git/actions?query=workflow%3ACI+branch%3Amaster)Exposes a Git directory abstraction that makes it easy to inspect and manipulate
a local Git repository.```dart
import 'package:git/git.dart';
import 'package:path/path.dart' as p;Future main() async {
print('Current directory: ${p.current}');if (await GitDir.isGitDir(p.current)) {
final gitDir = await GitDir.fromExisting(p.current);
final commitCount = await gitDir.commitCount();
print('Git commit count: $commitCount');
} else {
print('Not a Git directory');
}
}
```