pub fn last_commit_message(repo: &Repository) -> Result<String, GitError>Expand description
Format HEAD’s commit as "<short-sha> <subject>", matching upstream
git log -1 --pretty=%h %s. Used as CodePipeline metadata in the
s3+zip push variant.
§Errors
Returns GitError::NoCommits if the repository has no commits.
Returns other GitError variants if the commit object cannot be
decoded or a short id cannot be computed.