[][src]Struct git2::DescribeOptions

pub struct DescribeOptions { /* fields omitted */ }

Options which indicate how a Describe is created.

Methods

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]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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