vcs.CommitInfo

Metadata of one VCS commit, as exported to registries.

Usage

Source

vcs.CommitInfo(
    commit_id,
    parents,
    author_name,
    author_email,
    authored_at,
    committed_at,
    message,
    change_id=None
)

Parameter Attributes

commit_id: str

Full commit hash.

parents: tuple[str, …]

Parent commit ids, first parent first.

author_name: str
author_email: str
authored_at: str

ISO-8601 author timestamp.

committed_at: str

ISO-8601 committer timestamp.

message: str

Full commit message.

change_id: str | None = None
jj change id (None in plain git repositories).