pub struct CommitterIdentity {
pub name: Option<String>,
pub email: Option<String>,
}Expand description
Committer identity (author + committer name/email) for the rare path
where a git invocation lands on a host with no user.email /
user.name configured — notably actions/checkout@v6, which does
NOT set committer identity for the workflow runner. Resolved once per
caller and threaded through to revert_commit_in so the CLI never
mutates the repo’s git config (env-only, scoped to the single spawn).
Convention: when both name and email are populated, the values
are exported as GIT_AUTHOR_NAME / GIT_AUTHOR_EMAIL AND
GIT_COMMITTER_NAME / GIT_COMMITTER_EMAIL on the git child
processes (revert + amend). When None, the child inherits whatever
the parent / repo config provides.
Fields§
§name: Option<String>§email: Option<String>Implementations§
Source§impl CommitterIdentity
impl CommitterIdentity
Sourcepub fn default_for_rollback() -> Self
pub fn default_for_rollback() -> Self
Return a default committer identity to use when user.email and
user.name are both unset on the host. Email uses the
short-hostname (best-effort; falls back to "localhost") so a
reviewer can tell at a glance which machine emitted the
rollback commit.
Trait Implementations§
Source§impl Clone for CommitterIdentity
impl Clone for CommitterIdentity
Source§fn clone(&self) -> CommitterIdentity
fn clone(&self) -> CommitterIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more