pub struct Reset<'a, S> { /* private fields */ }Expand description
Builder for git reset command.
See git reset --help for full documentation.
Implementations§
Source§impl<'a> Reset<'a, NoTarget>
impl<'a> Reset<'a, NoTarget>
Sourcepub fn commit_ish(
self,
commit_ish: impl Into<CommitIsh<'a>>,
) -> Reset<'a, WithTarget<'a>>
pub fn commit_ish( self, commit_ish: impl Into<CommitIsh<'a>>, ) -> Reset<'a, WithTarget<'a>>
Select the commit-ish to reset to.
Calling this once locks the target in — selecting a second is a compile error.
Trait Implementations§
Source§impl<'a> Build for Reset<'a, WithTarget<'a>>
impl<'a> Build for Reset<'a, WithTarget<'a>>
Auto Trait Implementations§
impl<'a, S> Freeze for Reset<'a, S>where
S: Freeze,
impl<'a, S> RefUnwindSafe for Reset<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Reset<'a, S>where
S: Send,
impl<'a, S> Sync for Reset<'a, S>where
S: Sync,
impl<'a, S> Unpin for Reset<'a, S>where
S: Unpin,
impl<'a, S> UnsafeUnpin for Reset<'a, S>where
S: UnsafeUnpin,
impl<'a, S> UnwindSafe for Reset<'a, S>where
S: UnwindSafe,
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