pub enum CommitIsh<'a> {
Branch(&'a Branch),
Tag(&'a Tag),
Commit(&'a CommitId),
}Expand description
Anything that names a git commit-ish: a branch tip, a tag, or a specific commit object ID.
This is a typed subset of git’s full commit-ish concept — only validated newtypes from this crate are accepted, no free-form revspecs.
Variants§
Trait Implementations§
impl<'a> Copy for CommitIsh<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommitIsh<'a>
impl<'a> RefUnwindSafe for CommitIsh<'a>
impl<'a> Send for CommitIsh<'a>
impl<'a> Sync for CommitIsh<'a>
impl<'a> Unpin for CommitIsh<'a>
impl<'a> UnsafeUnpin for CommitIsh<'a>
impl<'a> UnwindSafe for CommitIsh<'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