Struct git2::Tree [] [src]

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

A structure to represent a git tree

Methods

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

Get the id (SHA1) of a repository object

Get the number of entries listed in this tree.

Returns an iterator over the entries in this tree.

Lookup a tree entry by SHA value.

Lookup a tree entry by its position in the tree

Lookup a tree entry by its filename

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

Casts this Tree to be usable as an Object

Consumes Commit to be returned as an Object

Trait Implementations

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

A method called when the value goes out of scope. 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?

Creates an iterator from a value. Read more