feat(commit): add ability to create commit with different number of parents

This commit is contained in:
Aleksey Kulikov 2021-08-30 16:45:37 +03:00
parent c90561ed8f
commit 94b4116adf
15 changed files with 217 additions and 260 deletions

View file

@ -10,9 +10,11 @@ class Odb {
libgit2.git_libgit2_init();
}
/// Pointer to memory address for allocated oid object.
late final Pointer<git_odb> _odbPointer;
/// Pointer to memory address for allocated oid object.
Pointer<git_odb> get pointer => _odbPointer;
/// Determine if an object can be found in the object database by an abbreviated object ID.
///
/// Throws a [LibGit2Error] if error occured.
@ -26,6 +28,5 @@ class Odb {
/// Releases memory allocated for odb object.
void free() {
bindings.free(_odbPointer);
libgit2.git_libgit2_shutdown();
}
}