pub struct PushArgs {
pub bookmark: Vec<String>,
pub revision: Vec<String>,
pub change: Vec<String>,
pub remote: Option<String>,
pub all: bool,
pub tracked: bool,
pub deleted: bool,
pub allow_new: bool,
pub passthrough: Vec<String>,
}Expand description
All flags that jj git push accepts and that we model explicitly.
Anything unrecognized passes through via PushArgs::passthrough (the
trailing -- escape hatch).
Fields§
§bookmark: Vec<String>Push only this bookmark (can be repeated).
revision: Vec<String>Push bookmarks pointing to these commits (can be repeated).
change: Vec<String>Push these commits by creating a bookmark (can be repeated).
remote: Option<String>The remote to push to.
all: boolPush all bookmarks (including new bookmarks).
tracked: boolPush all tracked bookmarks.
deleted: boolPush all deleted bookmarks.
allow_new: boolAllow pushing new bookmarks (i.e. bookmarks not yet on the remote).
passthrough: Vec<String>Pass-through args after -- forwarded to jj git push verbatim.
Trait Implementations§
Source§impl Args for PushArgs
impl Args for PushArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PushArgs
impl FromArgMatches for PushArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PushArgs
impl RefUnwindSafe for PushArgs
impl Send for PushArgs
impl Sync for PushArgs
impl Unpin for PushArgs
impl UnsafeUnpin for PushArgs
impl UnwindSafe for PushArgs
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