Struct git2::DescribeOptions[][src]

pub struct DescribeOptions { /* fields omitted */ }
Expand description

Options which indicate how a Describe is created.

Implementations

impl DescribeOptions[src]

pub fn new() -> DescribeOptions[src]

Creates a new blank set of formatting options for a description.

pub fn max_candidates_tags(&mut self, max: u32) -> &mut Self[src]

pub fn describe_tags(&mut self) -> &mut Self[src]

Sets the reference lookup strategy

This behaves like the --tags option to git-describe.

pub fn describe_all(&mut self) -> &mut Self[src]

Sets the reference lookup strategy

This behaves like the --all option to git-describe.

pub fn only_follow_first_parent(&mut self, follow: bool) -> &mut Self[src]

Indicates when calculating the distance from the matching tag or reference whether to only walk down the first-parent ancestry.

pub fn show_commit_oid_as_fallback(&mut self, show: bool) -> &mut Self[src]

If no matching tag or reference is found whether a describe option would normally fail. This option indicates, however, that it will instead fall back to showing the full id of the commit.

pub fn pattern(&mut self, pattern: &str) -> &mut Self[src]

Trait Implementations

impl Default for DescribeOptions[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.