Show commit author, not committer (#27856)

Release Notes:

- Fixed a bug where the git panel displayed a commit's committer in
place of its author.
This commit is contained in:
Max Brunsfeld
2025-04-01 09:55:56 -07:00
committed by GitHub
parent 76871056f5
commit ada8b0f822
5 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -375,7 +375,7 @@ fn format_commit(commit: &CommitDetails) -> String {
writeln!(
&mut result,
"Author: {} <{}>",
commit.committer_name, commit.committer_email
commit.author_name, commit.author_email
)
.unwrap();
writeln!(
+2 -2
View File
@@ -3972,8 +3972,8 @@ impl GitPanelMessageTooltip {
let commit_details = crate::commit_tooltip::CommitDetails {
sha: details.sha.clone(),
author_name: details.committer_name.clone(),
author_email: details.committer_email.clone(),
author_name: details.author_name.clone(),
author_email: details.author_email.clone(),
commit_time: OffsetDateTime::from_unix_timestamp(details.commit_timestamp)?,
message: Some(ParsedCommitMessage {
message: details.message.clone(),