mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor!: use IterableMixin where possible
This commit is contained in:
parent
6845286af2
commit
cf677e488a
8 changed files with 100 additions and 57 deletions
|
@ -49,8 +49,7 @@ class Tree {
|
|||
///
|
||||
/// If string [value] is provided, lookup is done by entry filename.
|
||||
///
|
||||
/// If provided string [value] is a path to file, lookup is done by path. In that case
|
||||
/// returned object should be freed explicitly.
|
||||
/// If provided string [value] is a path to file, lookup is done by path.
|
||||
TreeEntry operator [](Object value) {
|
||||
if (value is int) {
|
||||
return TreeEntry(bindings.getByIndex(_treePointer, value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue