mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(repository)!: add more aliases for api methods
BREAKING CHANGE: Make repository entry point for most operations
This commit is contained in:
parent
9205a3ad82
commit
3a0fa75929
51 changed files with 1380 additions and 1062 deletions
|
@ -5,9 +5,9 @@ import 'bindings/treebuilder.dart' as bindings;
|
|||
|
||||
class TreeBuilder {
|
||||
/// Initializes a new instance of [TreeBuilder] class from provided
|
||||
/// [Repository] and optional [Tree] objects.
|
||||
/// [repo]sitory and optional [tree] objects.
|
||||
///
|
||||
/// Should be freed with `free()` to release allocated memory.
|
||||
/// Should be freed to release allocated memory.
|
||||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
TreeBuilder({required Repository repo, Tree? tree}) {
|
||||
|
@ -79,6 +79,6 @@ class TreeBuilder {
|
|||
);
|
||||
}
|
||||
|
||||
/// Releases memory allocated for tree builder object.
|
||||
/// Releases memory allocated for tree builder object and all the entries.
|
||||
void free() => bindings.free(_treeBuilderPointer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue