feat(branch): add bindings and api

This commit is contained in:
Aleksey Kulikov 2021-09-06 17:26:25 +03:00
parent 28c4eca573
commit 11dbb8195d
7 changed files with 503 additions and 1 deletions

View file

@ -25,9 +25,11 @@ class Commit {
_commitPointer = bindings.lookup(repo.pointer, oid.pointer);
}
/// Pointer to memory address for allocated commit object.
late final Pointer<git_commit> _commitPointer;
/// Pointer to memory address for allocated commit object.
Pointer<git_commit> get pointer => _commitPointer;
/// Creates new commit in the repository.
///
/// Throws a [LibGit2Error] if error occured.