From 0fbc485188ec7a2c1aaa4e0665e2ee1d6acae7fe Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 2 Aug 2016 18:46:43 +0200 Subject: [PATCH] Add unified parameter to prevdiff Signed-off-by: Sven Strickroth --- src/TortoiseProc/Commands/PrevDiffCommand.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/Commands/PrevDiffCommand.cpp b/src/TortoiseProc/Commands/PrevDiffCommand.cpp index 20050ec50..215c93ff5 100644 --- a/src/TortoiseProc/Commands/PrevDiffCommand.cpp +++ b/src/TortoiseProc/Commands/PrevDiffCommand.cpp @@ -28,6 +28,7 @@ bool PrevDiffCommand::Execute() { bool bAlternativeTool = !!parser.HasKey(_T("alternative")); + bool bUnified = !!parser.HasKey(_T("unified")); if (this->orgCmdLinePath.IsDirectory()) { CFileDiffDlg dlg; @@ -52,5 +53,5 @@ bool PrevDiffCommand::Execute() } CGitDiff diff; - return !!diff.Diff(&cmdLinePath, &cmdLinePath, GIT_REV_ZERO, revs.GetGitRevAt(1).m_CommitHash.ToString(), false, false, 0, bAlternativeTool); + return !!diff.Diff(&cmdLinePath, &cmdLinePath, GIT_REV_ZERO, revs.GetGitRevAt(1).m_CommitHash.ToString(), false, bUnified, 0, bAlternativeTool); } -- 2.11.4.GIT