From 26da1b331a38f935e62e5a503d1e16300ba3a284 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 23 Sep 2016 20:27:24 +0200 Subject: [PATCH] Fixed issue #2830: Log from Repository Browser should use selected branch by default Signed-off-by: Sven Strickroth --- src/Changelog.txt | 1 + src/TortoiseProc/RepositoryBrowser.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Changelog.txt b/src/Changelog.txt index 5ec28b070..e1ba33a18 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -14,6 +14,7 @@ Released: unreleased * TortoiseGit now uses latest libgit2 which supports git index version 4 * Added support for GIT_ASK_YESNO wrapper * Updated libgit to 2.10.0 + * Fixed issue #2830: Log from Repository Browser should use selected branch by default == Bug Fixes == * Fixed issue #2789: Sync Dialog In ChangeList tab auto-resize column not optimal diff --git a/src/TortoiseProc/RepositoryBrowser.cpp b/src/TortoiseProc/RepositoryBrowser.cpp index 588dda960..31de6fc29 100644 --- a/src/TortoiseProc/RepositoryBrowser.cpp +++ b/src/TortoiseProc/RepositoryBrowser.cpp @@ -826,6 +826,8 @@ void CRepositoryBrowser::ShowContextMenu(CPoint point, TShadowFilesTreeList &sel sCmd.Format(_T("/command:log /path:\"%s\""), (LPCTSTR)g_Git.CombinePath(selectedLeafs.at(0)->GetFullName())); if (cmd == eCmd_ViewLog && selectedLeafs.at(0)->m_bSubmodule) sCmd += _T(" /submodule"); + if (cmd == eCmd_ViewLog) + sCmd += L" /endrev:" + m_sRevision; CAppUtils::RunTortoiseGitProc(sCmd); } break; -- 2.11.4.GIT