From f8bb65ce47c06f8331b9ee0cf21da6f7eb774b69 Mon Sep 17 00:00:00 2001 From: ZCShou <72115@163.com> Date: Tue, 14 Jul 2020 09:14:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9A=84=20INFORMATION=20Tab=E9=A1=B5=E4=B8=AD=E7=9A=84=20CHAN?= =?UTF-8?q?GE=20=E5=A2=9E=E5=8A=A0=E5=8F=8C=E5=87=BB=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SourceGit/UI/CommitViewer.xaml | 1 + SourceGit/UI/CommitViewer.xaml.cs | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 + } }