pub struct CheckpointSpec {
pub remote: String,
pub message: String,
pub author_name: Option<String>,
pub author_email: Option<String>,
pub branch: Option<String>,
pub fallback: Option<String>,
pub files: Option<Vec<CheckpointFile>>,
pub exclude: Option<Vec<String>>,
pub max_bytes: Option<u64>,
}Expand description
How to save a checkpoint. Crosses as a value.
Fields§
§remote: StringThe Git remote, by name or URL, to push to.
message: StringThe message of the commit that holds uncommitted changes, already under the Operation’s cover policy.
The author and committer name, when the Operation commits under a cover identity.
The author and committer email, when the Operation commits under a cover identity.
branch: Option<String>Commit the work in the working directory itself (HEAD moves to the commit) and push
it to this branch of remote as a fast-forward, instead of force-pushing a commit on
top of HEAD to the safe house’s own branch. A push the remote refuses is tried once
more after the work is replayed on the remote branch. The answer’s branch is where the
work landed, and its commit is empty when there was nothing to save.
fallback: Option<String>With branch, where the work goes when the remote branch still refuses it: this
branch of remote, which each such push replaces. Without it the refusal is an error.
files: Option<Vec<CheckpointFile>>With branch, commit exactly these files with exactly this text, and nothing else the
working directory holds, whoever is writing there meanwhile.
exclude: Option<Vec<String>>With branch and no files: paths, relative to the repository’s root, that the save
leaves out with everything under them, as it leaves out paths with a name starting
with ..
max_bytes: Option<u64>With branch and no files: refuse the save, committing and pushing nothing, when the
files it would add or change hold more than this many bytes together.
Trait Implementations§
Source§impl Clone for CheckpointSpec
impl Clone for CheckpointSpec
Source§impl Debug for CheckpointSpec
impl Debug for CheckpointSpec
impl Eq for CheckpointSpec
Source§impl FromValue for CheckpointSpec
impl FromValue for CheckpointSpec
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.