class

Git::Tree

Inherits Enumerable < Git::Object < Git::C_Pointer < Git::C_Value < Git::NoError < Reference < Object

Instance methods

[](idx : Int)
Source
diff(other : Tree | Nil)
Source
each

Must yield this collection's elements to the block.

Source
each_blob
Source
each_tree
Source
finalize
Source
get_entry(idx : Int)
Source
get_entry(id : Oid)
Source
get_entry?(id : Oid)
Source
path(path : String)
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
size_recursive
Source
walk(mode : TreewalkMode, &callback : String, TreeEntry -> Bool | Nil)
Source
walk_blobs(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil)
Source
walk_trees(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil)
Source