From 51f5d844dbed5ce4be60aca71e4f75cbb77a5d2a Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 23 Feb 2013 15:42:11 +0100 Subject: [PATCH] Include hash/branch name in log command just once Signed-off-by: Sven Strickroth --- src/Git/Git.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 63adc98a9..3314a98ab 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -855,7 +855,8 @@ CString CGit::GetLogCmd( const CString &hash, CTGitPath *path, int count, int ma range.Format(_T(" %s "), FixBranchName(*to)); param += range; } - param+=hash; + else + param += hash; CString st1,st2; @@ -902,7 +903,7 @@ CString CGit::GetLogCmd( const CString &hash, CTGitPath *path, int count, int ma } if (CRegDWORD(_T("Software\\TortoiseGit\\LogTopoOrder"), TRUE)) - param += _T(" --topo-order"); + param += _T(" --date-order"); if(paramonly) //tgit.dll.Git.cpp:setup_revisions() only looks at args[1] and greater. To account for this, pass a dummy parameter in the 0th place cmd.Format(_T("--ignore-this-parameter %s -z %s --parents "), num, param); -- 2.11.4.GIT