pub struct PushOptions {
pub quiet: bool,
pub force: bool,
}Expand description
Controls for a push run, mirroring the git push flags the CLI parses
that affect the wire/planning behavior the library owns.
set-upstream (-u) is intentionally absent: it only writes
branch.<name>.remote/merge config, which is a caller concern (the library
returns the executed commands in PushOutcome::commands so the caller can
drive that write). Atomic / push-options / thin are likewise absent because
the CLI’s HTTP and local push paths accept but do not act on them today; this
stays a faithful refactor of the existing behavior.
Fields§
§quiet: boolSuppress the per-command side-effect of negotiating the quiet
receive-pack capability (matching git push --quiet). Output suppression
itself is a caller concern — the library always returns the outcome.
force: boolForce every update, bypassing the non-fast-forward check. Per-refspec +
forces are honored independently of this flag.
Trait Implementations§
Source§impl Clone for PushOptions
impl Clone for PushOptions
Source§fn clone(&self) -> PushOptions
fn clone(&self) -> PushOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more