pub struct ForkRef {
pub remote_name: String,
pub remote_url: String,
pub branch: String,
}Expand description
The PR head’s own remote+branch, e.g. https://github.com/alice/firefox + feature-x.
None when the source fork has been deleted, in which case the jj backend falls back to a
raw fetch-and-import of refspec/commit instead.
Fields§
§remote_name: StringName to register the remote under in the canonical jj repo. Callers should use "origin"
instead of registering a redundant remote when this normalizes to the canonical repo’s
own origin URL (a same-repo branch PR).
remote_url: String§branch: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for ForkRef
impl RefUnwindSafe for ForkRef
impl Send for ForkRef
impl Sync for ForkRef
impl Unpin for ForkRef
impl UnsafeUnpin for ForkRef
impl UnwindSafe for ForkRef
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