1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Keep track of authors across local commits and branch commits for suggestions

Previously, we would only show the authors based on local commits, but sometimes you want to set a commit author
to that of a commit on another branch. Now, so long as you've viewed the branch's commits, the author will appear
as a suggestion.
This commit is contained in:
Jesse Duffield
2023-07-22 10:33:40 +10:00
parent a7969aef2c
commit 3cee37388c
7 changed files with 73 additions and 7 deletions

View File

@ -70,6 +70,7 @@ func (self *SwitchToSubCommitsController) viewCommits() error {
}
self.setSubCommits(commits)
self.c.Helpers().Refresh.RefreshAuthors(commits)
subCommitsContext := self.c.Contexts().SubCommits
subCommitsContext.SetSelectedLineIdx(0)