pub struct RevParse<'a> { /* private fields */ }Expand description
Builder for git rev-parse command.
See git rev-parse --help for full documentation.
Implementations§
Source§impl<'a> RevParse<'a>
impl<'a> RevParse<'a>
Sourcepub fn abbrev_ref(self) -> Self
pub fn abbrev_ref(self) -> Self
Output short ref name (e.g., main instead of refs/heads/main).
Corresponds to --abbrev-ref.
Sourcepub fn abbrev_ref_if(self, value: bool) -> Self
pub fn abbrev_ref_if(self, value: bool) -> Self
Conditionally output short ref name.
Sourcepub fn symbolic_full_name(self) -> Self
pub fn symbolic_full_name(self) -> Self
Output full symbolic ref name.
Corresponds to --symbolic-full-name.
Sourcepub fn symbolic_full_name_if(self, value: bool) -> Self
pub fn symbolic_full_name_if(self, value: bool) -> Self
Conditionally output full symbolic ref name.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RevParse<'a>
impl<'a> RefUnwindSafe for RevParse<'a>
impl<'a> Send for RevParse<'a>
impl<'a> Sync for RevParse<'a>
impl<'a> Unpin for RevParse<'a>
impl<'a> UnwindSafe for RevParse<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more