pub enum RefScope {
Tags,
Remotes,
AllRefs,
Revisions,
}Expand description
What a RefPickSource lists.
Variants§
Tags
refs/tags/* — Delete tag.
Remotes
Configured remotes (git remote), not refs/remotes/*: the
operations that take one want origin, not origin/main.
AllRefs
Everything for-each-ref returns — branches, remote-tracking
refs and tags. What a “ref” prompt means.
Revisions
MG.53.g: refs and recent commits — what “revision” means.
git log alone answers “which commit on the branch I am on”,
which is the wrong question for view this file as it is on
origin/main: a file on another branch is not in the current
branch’s history at all, so no number of commits would surface
it. Emacs’s magit-find-file completes over branches, tags and
commits together for the same reason.
Refs come first: reaching for another branch is the common ask, and a branch name is the thing a user can recognise.
Trait Implementations§
impl Copy for RefScope
impl Eq for RefScope
impl StructuralPartialEq for RefScope
Auto Trait Implementations§
impl Freeze for RefScope
impl RefUnwindSafe for RefScope
impl Send for RefScope
impl Sync for RefScope
impl Unpin for RefScope
impl UnsafeUnpin for RefScope
impl UnwindSafe for RefScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more