class Git::Tree

Included Modules

Defined in:

git/tree.cr

Instance Method Summary

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 [](idx : Int) #

[View source]
def diff(other : Tree | Nil) #

[View source]
def each(&) #
Description copied from module Enumerable(Git::TreeEntry)

Must yield this collection's elements to the block.


[View source]
def each_blob(&) #

[View source]
def each_tree(&) #

[View source]
def finalize #

[View source]
def get_entry(idx : Int) #

[View source]
def get_entry(id : Oid) #

[View source]
def get_entry?(id : Oid) #

[View source]
def path(path : String) #

[View source]
def size #
Description copied from module Enumerable(Git::TreeEntry)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]
def size_recursive #

[View source]
def walk(mode : TreewalkMode, &callback : String, TreeEntry -> Bool | Nil) #

[View source]
def walk_blobs(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil) #

[View source]
def walk_trees(mode : TreewalkMode = TreewalkMode::TreewalkPre, &callback : String, TreeEntry -> Bool | Nil) #

[View source]