enhance: show commit info tip when hover SHA in conflict view

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-10 20:02:09 +08:00
parent 2b2f070c4a
commit b4fbc2372b
No known key found for this signature in database
5 changed files with 176 additions and 92 deletions

View file

@ -160,14 +160,5 @@ namespace SourceGit.Views
e.Handled = true;
}
private void OnPressedSHA(object sender, PointerPressedEventArgs e)
{
var repoView = this.FindAncestorOfType<Repository>();
if (repoView is { DataContext: ViewModels.Repository repo } && sender is TextBlock text)
repo.NavigateToCommit(text.Text);
e.Handled = true;
}
}
}