pub struct PushReportRequest<'a> {Show 13 fields
pub git_dir: &'a Path,
pub common_git_dir: &'a Path,
pub format: ObjectFormat,
pub remote_git_dir: &'a Path,
pub remote_common_git_dir: &'a Path,
pub refspecs: &'a [String],
pub force: bool,
pub atomic: bool,
pub dry_run: bool,
pub force_with_lease: &'a [(String, Option<ObjectId>)],
pub force_with_lease_default: bool,
pub force_if_includes: bool,
pub receive_config_overrides: &'a [(String, String)],
}Expand description
Fully resolved inputs for a status-reporting push to a local repository.
Fields§
§git_dir: &'a PathLocal repository $GIT_DIR.
common_git_dir: &'a PathLocal repository common $GIT_DIR, used for object access.
format: ObjectFormatLocal repository object format.
remote_git_dir: &'a PathThe remote repository’s $GIT_DIR.
remote_common_git_dir: &'a PathThe remote repository’s common $GIT_DIR.
refspecs: &'a [String]Refspecs requested by the caller (already URL/repo resolved).
force: boolForce every update (the --force flag).
atomic: bool--atomic: send nothing if any ref would be rejected.
dry_run: bool--dry-run: classify and report, but do not send or update.
force_with_lease: &'a [(String, Option<ObjectId>)]Per-ref --force-with-lease expectations: (dst, expected_old). An
expected_old of None means “the remote ref must not exist”.
force_with_lease_default: bool--force-with-lease with no per-ref value: lease every pushed ref against
its remote-tracking ref (git’s implicit cas). The expected value per dst
is supplied via Self::force_with_lease; this flag only governs whether
a lease was requested at all (used for the “no actual ref” diagnostics).
force_if_includes: bool--force-if-includes: for tracking-based leases, reject when the current
remote tip is not included in the local branch’s reflog/history.
receive_config_overrides: &'a [(String, String)]Receive-pack-side config values supplied by the invoked receive-pack
command, e.g. --receive-pack="git -c receive.denyDeletes=false receive-pack".