pub enum CheckoutMode {
LinkedWorktree,
MainWorktree,
}Expand description
The checkout mode a landing records: where a topic branch opens.
A Git workflow parameter, rendered into the landed blocks and changed only through the landing verbs. It selects a working tree and nothing else: no branching method, no rebase policy, no merge policy.
SATISFIES git:checkout-mode-selects-where-a-topic-branch-opens
Variants§
LinkedWorktree
Every code-changing branch opens in a linked worktree and the main checkout commits nothing.
MainWorktree
A branch opens in the repository’s original working tree, which switches to it; worktrees stay available beside it and nothing refuses either form.
Implementations§
Source§impl CheckoutMode
impl CheckoutMode
Sourcepub const fn runbook_label(self) -> &'static str
pub const fn runbook_label(self) -> &'static str
The label the runbooks select a variant on.
Sourcepub fn parse(raw: &str) -> Result<Self, RkError>
pub fn parse(raw: &str) -> Result<Self, RkError>
Parse a --checkout-mode flag value. The two names a record
carried before the vocabulary moved, worktree and branches,
still read, so an older command line and an older configuration
keep working.
§Errors
Returns RkError::Usage naming the two values.
Trait Implementations§
Source§impl Clone for CheckoutMode
impl Clone for CheckoutMode
Source§fn clone(&self) -> CheckoutMode
fn clone(&self) -> CheckoutMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CheckoutMode
Source§impl Debug for CheckoutMode
impl Debug for CheckoutMode
Source§impl<'de> Deserialize<'de> for CheckoutMode
impl<'de> Deserialize<'de> for CheckoutMode
Source§fn deserialize<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
impl Eq for CheckoutMode
Source§impl PartialEq for CheckoutMode
impl PartialEq for CheckoutMode
Source§impl Serialize for CheckoutMode
impl Serialize for CheckoutMode
impl StructuralPartialEq for CheckoutMode
Auto Trait Implementations§
impl Freeze for CheckoutMode
impl RefUnwindSafe for CheckoutMode
impl Send for CheckoutMode
impl Sync for CheckoutMode
impl Unpin for CheckoutMode
impl UnsafeUnpin for CheckoutMode
impl UnwindSafe for CheckoutMode
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.