Struct git2::Revspec [] [src]

pub struct Revspec<'repo> {
    // some fields omitted
}
[]

A revspec represents a range of revisions within a repository.

Methods

impl<'repo> Revspec<'repo>

fn from_objects(from: Option<Object<'repo>>, to: Option<Object<'repo>>, mode: RevparseMode) -> Revspec<'repo>[]

Assembles a new revspec from the from/to components.

fn from(&self) -> Option<&Object<'repo>>[]

Access the from range of this revspec.

fn to(&self) -> Option<&Object<'repo>>[]

Access the to range of this revspec.

fn mode(&self) -> RevparseMode[]

Returns the intent of the revspec.