fix(Diff): fixup diff unstaged/staged file error

This commit is contained in:
leo 2020-09-23 10:15:59 +08:00
parent 9b452bef8b
commit 8719a7c935

View file

@ -57,7 +57,10 @@ namespace SourceGit.UI {
Task.Run(() => { Task.Run(() => {
var args = $"{opts.ExtraArgs} "; var args = $"{opts.ExtraArgs} ";
if (opts.RevisionRange.Length > 0) args += $"{opts.RevisionRange[0]} "; 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}\" "; if (!string.IsNullOrEmpty(opts.OrgPath)) args += $"\"{opts.OrgPath}\" ";
args += $"\"{opts.Path}\""; args += $"\"{opts.Path}\"";