Struct git2::DescribeOptions [−][src]
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]
Auto Trait Implementations
impl RefUnwindSafe for DescribeOptions
impl !Send for DescribeOptions
impl !Sync for DescribeOptions
impl Unpin for DescribeOptions
impl UnwindSafe for DescribeOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,