From 13c2b8c08f154d2d3ddc2a3664c5480744a4dc07 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 25 Feb 2013 00:19:31 +0100 Subject: [PATCH] LogDlg: Allow arbitrary gitrevision ranges from cli Signed-off-by: Sven Strickroth --- doc/source/en/TortoiseGit/tsvn_app_automation.xml | 1 + src/TortoiseProc/Commands/LogCommand.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/source/en/TortoiseGit/tsvn_app_automation.xml b/doc/source/en/TortoiseGit/tsvn_app_automation.xml index 78cf752c1..50302ab38 100644 --- a/doc/source/en/TortoiseGit/tsvn_app_automation.xml +++ b/doc/source/en/TortoiseGit/tsvn_app_automation.xml @@ -157,6 +157,7 @@ Don't touch these lines: highlights and automatically scrolls to the specified revision, , shows the log of the specified revision, (only in combination with endrev), shows the log of the revision range startrev..endrev, + , shows the log of the entered gitrevision (e.g. "branch1...branch2"), fills in the filter text, forces the filter to use text, not regex, or forces the filter to use regex, not simple text search, and diff --git a/src/TortoiseProc/Commands/LogCommand.cpp b/src/TortoiseProc/Commands/LogCommand.cpp index 7ddd0efa6..299366468 100644 --- a/src/TortoiseProc/Commands/LogCommand.cpp +++ b/src/TortoiseProc/Commands/LogCommand.cpp @@ -51,6 +51,9 @@ bool LogCommand::Execute() if (!revend.IsEmpty()) range += g_Git.FixBranchName(revend); + if (parser.HasVal(_T("range"))) + range = parser.GetVal(_T("range")); + CString val = parser.GetVal(_T("limit")); int limit = _tstoi(val); CString rev = parser.GetVal(_T("rev")); -- 2.11.4.GIT