pub struct RevList<'a> { /* private fields */ }Expand description
Builder for git rev-list command.
See git rev-list --help for full documentation.
Implementations§
Source§impl<'a> RevList<'a>
impl<'a> RevList<'a>
Sourcepub fn topo_order(self) -> Self
pub fn topo_order(self) -> Self
Show commits in topological order.
Corresponds to --topo-order.
Sourcepub fn topo_order_if(self, value: bool) -> Self
pub fn topo_order_if(self, value: bool) -> Self
Conditionally show commits in topological order.
Sourcepub fn reverse_if(self, value: bool) -> Self
pub fn reverse_if(self, value: bool) -> Self
Conditionally output commits in reverse order.
Sourcepub fn max_count(self, count: usize) -> Self
pub fn max_count(self, count: usize) -> Self
Limit the number of commits to output.
Corresponds to --max-count or -n.
Sourcepub fn output(self) -> Result<Output, CommandError>
pub fn output(self) -> Result<Output, CommandError>
Execute and return full output regardless of exit status.
Use this when you need to inspect stderr on failure.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RevList<'a>
impl<'a> RefUnwindSafe for RevList<'a>
impl<'a> Send for RevList<'a>
impl<'a> Sync for RevList<'a>
impl<'a> Unpin for RevList<'a>
impl<'a> UnwindSafe for RevList<'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