Struct jj_cli::cli_util::GlobalArgs
source · pub struct GlobalArgs {
pub repository: Option<String>,
pub ignore_working_copy: bool,
pub ignore_immutable: bool,
pub at_operation: String,
pub debug: bool,
pub early_args: EarlyArgs,
}Fields§
§repository: Option<String>Path to repository to operate on
By default, Jujutsu searches for the closest .jj/ directory in an ancestor of the current working directory.
ignore_working_copy: boolDon’t snapshot the working copy, and don’t update it
By default, Jujutsu snapshots the working copy at the beginning of every
command. The working copy is also updated at the end of the command,
if the command modified the working-copy commit (@). If you want
to avoid snapshotting the working copy and instead see a possibly
stale working copy commit, you can use --ignore-working-copy.
This may be useful e.g. in a command prompt, especially if you have
another process that commits the working copy.
Loading the repository at a specific operation with --at-operation
implies --ignore-working-copy.
ignore_immutable: boolDon’t prevent rewriting immutable commits
By default, Jujutsu prevents rewriting commits in the configured set of immutable commits. This option disables that check and lets you rewrite any commit but the root commit.
This option only affects the check. It does not affect the
immutable_heads() revset or the immutable template keyword.
at_operation: StringOperation to load the repo at
Operation to load the repo at. By default, Jujutsu loads the repo at the
most recent operation. You can use --at-op=<operation ID> to see what
the repo looked like at an earlier operation. For example jj --at-op=<operation ID> st will show you what jj st would have
shown you when the given operation had just finished.
Use jj op log to find the operation ID you want. Any unambiguous
prefix of the operation ID is enough.
When loading the repo at an earlier operation, the working copy will be
ignored, as if --ignore-working-copy had been specified.
It is possible to run mutating commands when loading the repo at an earlier operation. Doing that is equivalent to having run concurrent commands starting at the earlier operation. There’s rarely a reason to do that, but it is possible.
debug: boolEnable debug logging
early_args: EarlyArgsTrait Implementations§
source§impl Args for GlobalArgs
impl Args for GlobalArgs
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for GlobalArgs
impl Clone for GlobalArgs
source§fn clone(&self) -> GlobalArgs
fn clone(&self) -> GlobalArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GlobalArgs
impl Debug for GlobalArgs
source§impl FromArgMatches for GlobalArgs
impl FromArgMatches for GlobalArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for GlobalArgs
impl RefUnwindSafe for GlobalArgs
impl Send for GlobalArgs
impl Sync for GlobalArgs
impl Unpin for GlobalArgs
impl UnwindSafe for GlobalArgs
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more