pub struct GlobalOptions { /* private fields */ }Expand description
Global jj options rendered before the command family.
Implementations§
Source§impl GlobalOptions
impl GlobalOptions
Sourcepub fn with_repository(self, repository: impl Into<PathBuf>) -> Self
pub fn with_repository(self, repository: impl Into<PathBuf>) -> Self
Sets the repository passed with jj --repository.
Sourcepub const fn with_working_copy(self, working_copy: WorkingCopyPolicy) -> Self
pub const fn with_working_copy(self, working_copy: WorkingCopyPolicy) -> Self
Sets whether jj should snapshot and update the working copy.
Sourcepub fn with_operation(self, operation: OperationLoadPolicy) -> Self
pub fn with_operation(self, operation: OperationLoadPolicy) -> Self
Sets which operation jj should load.
Sourcepub const fn with_operation_integration(
self,
operation_integration: OperationIntegrationPolicy,
) -> Self
pub const fn with_operation_integration( self, operation_integration: OperationIntegrationPolicy, ) -> Self
Sets whether jj should integrate the loaded operation.
Sourcepub const fn with_immutability(self, immutability: ImmutabilityPolicy) -> Self
pub const fn with_immutability(self, immutability: ImmutabilityPolicy) -> Self
Sets whether immutable commits may be rewritten.
Sourcepub const fn with_output(self, output: OutputPolicy) -> Self
pub const fn with_output(self, output: OutputPolicy) -> Self
Sets output-related jj options.
Sourcepub const fn with_debug(self, debug: bool) -> Self
pub const fn with_debug(self, debug: bool) -> Self
Sets whether jj --debug should be rendered.
Sourcepub fn with_config_overlay(self, overlay: ConfigOverlay) -> Self
pub fn with_config_overlay(self, overlay: ConfigOverlay) -> Self
Adds a config overlay in render order.
Sourcepub fn repository(&self) -> Option<&Path>
pub fn repository(&self) -> Option<&Path>
Returns the configured repository path.
Trait Implementations§
Source§impl Clone for GlobalOptions
impl Clone for GlobalOptions
Source§fn clone(&self) -> GlobalOptions
fn clone(&self) -> GlobalOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlobalOptions
impl Debug for GlobalOptions
Source§impl Default for GlobalOptions
impl Default for GlobalOptions
impl Eq for GlobalOptions
Source§impl PartialEq for GlobalOptions
impl PartialEq for GlobalOptions
Source§fn eq(&self, other: &GlobalOptions) -> bool
fn eq(&self, other: &GlobalOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GlobalOptions
Auto Trait Implementations§
impl Freeze for GlobalOptions
impl RefUnwindSafe for GlobalOptions
impl Send for GlobalOptions
impl Sync for GlobalOptions
impl Unpin for GlobalOptions
impl UnsafeUnpin for GlobalOptions
impl UnwindSafe for GlobalOptions
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