pub struct MergeArgs {
pub thread: String,
pub message: Option<String>,
pub no_commit: bool,
pub preview: bool,
pub with_diff: bool,
pub semantic: bool,
pub git_commit: bool,
}Expand description
Arguments for the merge command.
Fields§
§thread: StringThread to merge.
message: Option<String>Commit message for the merge.
no_commit: boolApply merge without committing.
preview: boolShow semantic integration summary without applying changes.
with_diff: boolInclude the diff (parent ↔ thread tip) in the JSON output.
On --preview, this is the diff that would land. Without
--preview (a real merge) it echoes the diff that just landed.
semantic: boolWhen combined with --with-diff, return a semantic-aware diff
(function/class-level changes) in addition to line hunks.
Requires building heddle with --features semantic.
git_commit: boolAfter a successful (non-preview) merge, also write a git commit
staging the paths the merge introduced. Fails if the worktree
has unrelated uncommitted changes or git is in an unexpected
state (detached HEAD, no .git, missing identity). With
--preview, the would-be git commit message is included in the
JSON output as git_commit_preview without writing anything.
Trait Implementations§
Source§impl Args for MergeArgs
impl Args for MergeArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for MergeArgs
impl FromArgMatches for MergeArgs
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 MergeArgs
impl RefUnwindSafe for MergeArgs
impl Send for MergeArgs
impl Sync for MergeArgs
impl Unpin for MergeArgs
impl UnsafeUnpin for MergeArgs
impl UnwindSafe for MergeArgs
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request