diff --git a/SourceGit/UI/CommitViewer.xaml b/SourceGit/UI/CommitViewer.xaml index 7f68ffea..fdc54f16 100644 --- a/SourceGit/UI/CommitViewer.xaml +++ b/SourceGit/UI/CommitViewer.xaml @@ -211,6 +211,7 @@ diff --git a/SourceGit/UI/CommitViewer.xaml.cs b/SourceGit/UI/CommitViewer.xaml.cs index 526841c3..bc57c11d 100644 --- a/SourceGit/UI/CommitViewer.xaml.cs +++ b/SourceGit/UI/CommitViewer.xaml.cs @@ -280,6 +280,18 @@ namespace SourceGit.UI { menu.IsOpen = true; e.Handled = true; } + + private void ChangeListMouseDoubleClick(object sender, MouseButtonEventArgs e) + { + var row = sender as DataGridRow; + if (row == null) return; + + var change = row.DataContext as Git.Change; + if (change == null) return; + + var viewer = new FileHistories(repo, change.Path); + viewer.Show(); + } #endregion #region FILES @@ -466,5 +478,6 @@ namespace SourceGit.UI { e.Handled = true; } #endregion + } }