mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(treebuilder): add bindings and api
This commit is contained in:
parent
0cdaa6f8f4
commit
139c477d4a
6 changed files with 299 additions and 5 deletions
|
@ -52,6 +52,12 @@ class Tree {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns the Oid of a tree.
|
||||
Oid get id => Oid(bindings.id(_treePointer));
|
||||
|
||||
/// Get the number of entries listed in a tree.
|
||||
int get length => bindings.entryCount(_treePointer);
|
||||
|
||||
/// Releases memory allocated for tree object.
|
||||
void free() => bindings.free(_treePointer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue