pub enum ObjectKindHint {
Commit,
Committish,
Tree,
Treeish,
Blob,
}
Available on crate feature
revision
only.Expand description
A hint to know which object kind to prefer if multiple objects match a prefix.
This disambiguation mechanism is applied only if there is no disambiguation hints in the spec itself.
Variants§
Commit
Pick objects that are commits themselves.
Committish
Pick objects that can be peeled into a commit, i.e. commits themselves or tags which are peeled until a commit is found.
Tree
Pick objects that are trees themselves.
Treeish
Pick objects that can be peeled into a tree, i.e. trees themselves or tags which are peeled until a tree is found or commits whose tree is chosen.
Blob
Pick objects that are blobs.
Trait Implementations§
source§impl Clone for ObjectKindHint
impl Clone for ObjectKindHint
source§fn clone(&self) -> ObjectKindHint
fn clone(&self) -> ObjectKindHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ObjectKindHint
impl Debug for ObjectKindHint
source§impl PartialEq<ObjectKindHint> for ObjectKindHint
impl PartialEq<ObjectKindHint> for ObjectKindHint
source§fn eq(&self, other: &ObjectKindHint) -> bool
fn eq(&self, other: &ObjectKindHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ObjectKindHint
impl Eq for ObjectKindHint
impl StructuralEq for ObjectKindHint
impl StructuralPartialEq for ObjectKindHint
Auto Trait Implementations§
impl RefUnwindSafe for ObjectKindHint
impl Send for ObjectKindHint
impl Sync for ObjectKindHint
impl Unpin for ObjectKindHint
impl UnwindSafe for ObjectKindHint
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more