pub struct MergeConfig {
pub squash: Option<bool>,
pub commit: Option<bool>,
pub rebase: Option<bool>,
pub remove: Option<bool>,
pub verify: Option<bool>,
}Expand description
Configuration for the wt merge command
Note: stage defaults from [commit] section, not here.
Fields§
§squash: Option<bool>Squash commits when merging (default: true)
commit: Option<bool>Commit, squash, and rebase during merge (default: true)
rebase: Option<bool>Rebase onto target branch before merging (default: true)
When false, merge fails if branch is not already rebased.
remove: Option<bool>Remove worktree after merge (default: true)
verify: Option<bool>Run project hooks (default: true)
Implementations§
Source§impl MergeConfig
impl MergeConfig
Trait Implementations§
Source§impl Clone for MergeConfig
impl Clone for MergeConfig
Source§fn clone(&self) -> MergeConfig
fn clone(&self) -> MergeConfig
Returns a duplicate 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 MergeConfig
impl Debug for MergeConfig
Source§impl Default for MergeConfig
impl Default for MergeConfig
Source§fn default() -> MergeConfig
fn default() -> MergeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MergeConfig
impl<'de> Deserialize<'de> for MergeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MergeConfig
impl JsonSchema for MergeConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MergeConfig
impl PartialEq for MergeConfig
Source§impl Serialize for MergeConfig
impl Serialize for MergeConfig
impl StructuralPartialEq for MergeConfig
Auto Trait Implementations§
impl Freeze for MergeConfig
impl RefUnwindSafe for MergeConfig
impl Send for MergeConfig
impl Sync for MergeConfig
impl Unpin for MergeConfig
impl UnsafeUnpin for MergeConfig
impl UnwindSafe for MergeConfig
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