mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor!: use Finalizer
to automatically free allocated memory for objects (#48)
BREAKING CHANGE: signature change for remote and repository callbacks during repository clone operation.
This commit is contained in:
parent
94c40f9a94
commit
a3213a88a2
103 changed files with 2278 additions and 2595 deletions
|
@ -74,9 +74,6 @@ class Merge {
|
|||
(e) => analysisInt[1] == e.value,
|
||||
);
|
||||
|
||||
head.free();
|
||||
ref.free();
|
||||
|
||||
return <Object>[analysisSet, mergePreference];
|
||||
}
|
||||
|
||||
|
@ -140,8 +137,6 @@ class Merge {
|
|||
/// [fileFlags] is a combination of [GitMergeFileFlag] flags. Defaults to
|
||||
/// [GitMergeFileFlag.defaults].
|
||||
///
|
||||
/// **IMPORTANT**: returned index should be freed to release allocated memory.
|
||||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
static Index commits({
|
||||
required Repository repo,
|
||||
|
@ -188,8 +183,6 @@ class Merge {
|
|||
/// [fileFlags] is a combination of [GitMergeFileFlag] flags. Defaults to
|
||||
/// [GitMergeFileFlag.defaults].
|
||||
///
|
||||
/// **IMPORTANT**: returned index should be freed to release allocated memory.
|
||||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
static Index trees({
|
||||
required Repository repo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue