pub struct RemoteRef {
pub target: RefTarget,
pub state: RemoteRefState,
}
Expand description
Remote branch or tag.
Fields§
§target: RefTarget
§state: RemoteRefState
Implementations§
source§impl RemoteRef
impl RemoteRef
sourcepub fn absent_ref() -> &'static Self
pub fn absent_ref() -> &'static Self
Returns remote ref pointing to no commit.
This will typically be used in place of None
returned by map lookup.
sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Returns true if the target points to any commit.
sourcepub fn is_tracking(&self) -> bool
pub fn is_tracking(&self) -> bool
Returns true if the ref is supposed to be merged in to the local ref.
sourcepub fn tracking_target(&self) -> &RefTarget
pub fn tracking_target(&self) -> &RefTarget
Target that should have been merged in to the local ref.
Use this as the base or known target when merging new remote ref in to local or pushing local ref to remote.
Trait Implementations§
source§impl ContentHash for RemoteRef
impl ContentHash for RemoteRef
source§impl PartialEq for RemoteRef
impl PartialEq for RemoteRef
impl Eq for RemoteRef
impl StructuralEq for RemoteRef
impl StructuralPartialEq for RemoteRef
Auto Trait Implementations§
impl RefUnwindSafe for RemoteRef
impl Send for RemoteRef
impl Sync for RemoteRef
impl Unpin for RemoteRef
impl UnwindSafe for RemoteRef
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