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:
parent
76871056f5
commit
ada8b0f822
5 changed files with 13 additions and 13 deletions
|
@ -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!(
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue