refactor: remove unnecessary git_libgit2_init()

This commit is contained in:
Aleksey Kulikov 2021-09-27 12:05:18 +03:00
parent b5561212e0
commit b15b56f0ae
5 changed files with 9 additions and 14 deletions

View file

@ -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.