From 0d190fc38eb3bb02691037e23c50dad155c5e222 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 16 Apr 2012 14:02:33 +0200 Subject: [PATCH] LogDlg: Do not show invalid commit date for working dir changes entry Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogListBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index 4abc04538..b487aa946 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -1312,7 +1312,7 @@ void CGitLogListBase::OnLvnGetdispinfoLoglist(NMHDR *pNMHDR, LRESULT *pResult) break; case this->LOGLIST_COMMIT_DATE: //Commit Date - if (pLogEntry) + if (pLogEntry && (!pLogEntry->m_CommitHash.IsEmpty())) lstrcpyn(pItem->pszText, CLoglistUtils::FormatDateAndTime(pLogEntry->GetCommitterDate(), m_DateFormat, true, m_bRelativeTimes), pItem->cchTextMax); -- 2.11.4.GIT