From 8719a7c9358aec8bfcf8556262e1b5ba9d45a406 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 23 Sep 2020 10:15:59 +0800 Subject: [PATCH] fix(Diff): fixup diff unstaged/staged file error --- src/UI/DiffViewer.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/UI/DiffViewer.xaml.cs b/src/UI/DiffViewer.xaml.cs index ab469309..5f22b1af 100644 --- a/src/UI/DiffViewer.xaml.cs +++ b/src/UI/DiffViewer.xaml.cs @@ -57,7 +57,10 @@ namespace SourceGit.UI { Task.Run(() => { var args = $"{opts.ExtraArgs} "; if (opts.RevisionRange.Length > 0) args += $"{opts.RevisionRange[0]} "; - if (opts.RevisionRange.Length > 1) args += $"{opts.RevisionRange[1]} -- "; + if (opts.RevisionRange.Length > 1) args += $"{opts.RevisionRange[1]} "; + + args += "-- "; + if (!string.IsNullOrEmpty(opts.OrgPath)) args += $"\"{opts.OrgPath}\" "; args += $"\"{opts.Path}\"";