Struct git2::Tree [] [src]

pub struct Tree<'repo> { /* fields omitted */ }

A structure to represent a git tree

Methods

impl<'repo> Tree<'repo>
[src]

[src]

Get the id (SHA1) of a repository object

[src]

Get the number of entries listed in this tree.

[src]

Return true if there is not entry

[src]

Returns an iterator over the entries in this tree.

[src]

Lookup a tree entry by SHA value.

[src]

Lookup a tree entry by its position in the tree

[src]

Lookup a tree entry by its filename

[src]

Retrieve a tree entry contained in a tree or in any of its subtrees, given its relative path.

[src]

Casts this Tree to be usable as an Object

[src]

Consumes Commit to be returned as an Object

Trait Implementations

impl<'repo> Drop for Tree<'repo>
[src]

[src]

Executes the destructor for this type. Read more

impl<'repo, 'iter> IntoIterator for &'iter Tree<'repo>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more