mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat: add basic example
This commit is contained in:
parent
a7040e5040
commit
a1481564b2
1 changed files with 10 additions and 0 deletions
10
example/example.dart
Normal file
10
example/example.dart
Normal file
|
@ -0,0 +1,10 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:libgit2dart/libgit2dart.dart';
|
||||
|
||||
void main() {
|
||||
final repo = Repository.open(Directory.current.path);
|
||||
print(repo.path);
|
||||
|
||||
stdout.write(repo.headCommit);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue