git_ui: Show author name on commits in branch picker (#36812)
See related discussion https://github.com/zed-industries/zed/discussions/36511. <img alt="zed" src="https://github.com/user-attachments/assets/da7fc30d-2504-48f4-a392-7c8d5cd8acb1" /> Release Notes: - Added option to show the author name in a branch picker commit information --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
co-authored by
Conrad Irwin
parent
9529cd18d1
commit
46fb521333
@@ -4752,6 +4752,7 @@ fn branch_to_proto(branch: &git::repository::Branch) -> proto::Branch {
|
||||
sha: commit.sha.to_string(),
|
||||
subject: commit.subject.to_string(),
|
||||
commit_timestamp: commit.commit_timestamp,
|
||||
author_name: commit.author_name.to_string(),
|
||||
}),
|
||||
}
|
||||
}
|
||||
@@ -4781,6 +4782,7 @@ fn proto_to_branch(proto: &proto::Branch) -> git::repository::Branch {
|
||||
sha: commit.sha.to_string().into(),
|
||||
subject: commit.subject.to_string().into(),
|
||||
commit_timestamp: commit.commit_timestamp,
|
||||
author_name: commit.author_name.to_string().into(),
|
||||
has_parent: true,
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user