mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(repository): add base bindings and api
This commit is contained in:
parent
39e2676055
commit
4bd324a596
50 changed files with 2250 additions and 47 deletions
|
@ -38,8 +38,6 @@ class Config {
|
|||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
libgit2.git_libgit2_shutdown();
|
||||
}
|
||||
|
||||
/// Initializes a new instance of [Config] class.
|
||||
|
@ -57,8 +55,6 @@ class Config {
|
|||
_configPointer = nullptr;
|
||||
rethrow;
|
||||
}
|
||||
|
||||
libgit2.git_libgit2_shutdown();
|
||||
}
|
||||
|
||||
/// Initializes a new instance of [Config] class.
|
||||
|
@ -76,8 +72,6 @@ class Config {
|
|||
_configPointer = nullptr;
|
||||
rethrow;
|
||||
}
|
||||
|
||||
libgit2.git_libgit2_shutdown();
|
||||
}
|
||||
|
||||
/// Initializes a new instance of [Config] class.
|
||||
|
@ -95,8 +89,6 @@ class Config {
|
|||
_configPointer = nullptr;
|
||||
rethrow;
|
||||
}
|
||||
|
||||
libgit2.git_libgit2_shutdown();
|
||||
}
|
||||
|
||||
/// Path to on-disk config file provided by user.
|
||||
|
@ -175,5 +167,6 @@ class Config {
|
|||
/// Releases memory allocated for config object.
|
||||
void close() {
|
||||
calloc.free(_configPointer);
|
||||
libgit2.git_libgit2_shutdown();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue