mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: remove unnecessary git_libgit2_init()
This commit is contained in:
parent
b5561212e0
commit
b15b56f0ae
5 changed files with 9 additions and 14 deletions
|
@ -6,16 +6,13 @@ import 'repository.dart';
|
|||
import 'oid.dart';
|
||||
import 'signature.dart';
|
||||
import 'tree.dart';
|
||||
import 'util.dart';
|
||||
|
||||
class Commit {
|
||||
/// Initializes a new instance of [Commit] class from provided pointer to
|
||||
/// commit object in memory.
|
||||
///
|
||||
/// Should be freed with `free()` to release allocated memory.
|
||||
Commit(this._commitPointer) {
|
||||
libgit2.git_libgit2_init();
|
||||
}
|
||||
Commit(this._commitPointer);
|
||||
|
||||
/// Initializes a new instance of [Commit] class from provided [Repository] object
|
||||
/// and [sha] hex string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue