From 71fcce4591a097469ae2e6097d7b26fc51e269bd Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 4 Jan 2015 05:09:08 +0100 Subject: [PATCH] Fixed issue #2388: See the exact time when the Relative time in log enabled Signed-off-by: Sven Strickroth --- src/Changelog.txt | 2 ++ src/TortoiseProc/GitLogListBase.cpp | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Changelog.txt b/src/Changelog.txt index f1c653a8d..752a24230 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -7,6 +7,7 @@ Released: unreleased New version.txt file format with more options * Fixed issue #2243: Submodule red-icon doesn't propagate to higher folders (configurable now) * Improved overlay icon accuracy + * Fixed issue #2388: See the exact time when the Relative time in log enabled == Bug Fixes == * Fixed issue #2359: Selected files counter not updated after revert @@ -19,6 +20,7 @@ Released: unreleased * Fixed issue #2356: Rebase dialog should also auto-link to issue tracker * Fixed issue #2390: /command:log /outfile not written * Fixed issue #2391: Cannot clear "Load Putty Key" in clone dialog persistently + * Fixed issue #1789: Tooltips not properly displayed in Log List if that commit has refs = Release 1.8.12.0 = Released: 2014-11-25 diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index 44e88cc19..de53f8c71 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -4249,6 +4249,20 @@ CString CGitLogListBase::GetToolTipText(int nItem, int nSubItem) return CString(); return pLogEntry->GetSubject(); } + else if (nSubItem == LOGLIST_DATE && m_bRelativeTimes) + { + GitRev* pLogEntry = (GitRev*)m_arShownList.SafeGetAt(nItem); + if (pLogEntry == nullptr) + return CString(); + return CLoglistUtils::FormatDateAndTime(pLogEntry->GetAuthorDate(), m_DateFormat, true, false); + } + else if (nSubItem == LOGLIST_COMMIT_DATE && m_bRelativeTimes) + { + GitRev* pLogEntry = (GitRev*)m_arShownList.SafeGetAt(nItem); + if (pLogEntry == nullptr) + return CString(); + return CLoglistUtils::FormatDateAndTime(pLogEntry->GetCommitterDate(), m_DateFormat, true, false); + } else if (nSubItem == LOGLIST_ACTION) { GitRev* pLogEntry = (GitRev*)m_arShownList.SafeGetAt(nItem); -- 2.11.4.GIT