feature<CommitDetail>: goto diff view by double click changed file in commit information panel

This commit is contained in:
leo 2021-05-13 10:55:25 +08:00
parent 0810e19f93
commit b9b0899d48
6 changed files with 66 additions and 6 deletions

View file

@ -35,7 +35,7 @@ namespace SourceGit.Views.Widgets {
foreach (var item in commitList.ItemsSource) {
var c = item as Models.Commit;
if (c.SHA.Contains(commit)) {
if (c.SHA.StartsWith(commit, StringComparison.Ordinal)) {
commitList.SelectedItem = c;
commitList.ScrollIntoView(c);
break;