class Git::Tree
- Git::Tree
- Git::Object
- Git::C_Pointer
- Git::C_Value
- Git::NoError
- Reference
- Object
Included Modules
- Enumerable(Git::TreeEntry)
Defined in:
git/tree.crInstance Method Summary
- #[](idx : Int)
- #diff(other : Tree | Nil)
-
#each(&)
Must yield this collection's elements to the block.
- #each_blob(&)
- #each_tree(&)
- #finalize
- #get_entry(idx : Int)
- #get_entry(id : Oid)
- #get_entry?(id : Oid)
- #path(path : String)
-
#size
Returns the number of elements in the collection.
- #size_recursive
- #walk(mode : TreewalkMode, &callback : String, TreeEntry -> Bool | Nil)
- #walk_blobs(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil)
- #walk_trees(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil)
Instance methods inherited from class Git::Object
oid
oid,
read_raw
read_raw,
type
type
Constructor methods inherited from class Git::Object
new(obj : LibGit::Object)
new
Class methods inherited from class Git::Object
lookup(repo : Repo, sha : String)
lookup
Instance methods inherited from class Git::C_Pointer
finalize
finalize
Instance methods inherited from class Git::C_Value
==(other : self)
==,
to_unsafe
to_unsafe
Instance Method Detail
def each(&)
#
Description copied from module Enumerable(Git::TreeEntry)
Must yield this collection's elements to the block.
def size
#
Description copied from module Enumerable(Git::TreeEntry)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4
def walk_blobs(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil)
#
def walk_trees(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil)
#