OSDN Git Service

Fix FileDiffDlg ToolTip show error time info problem
authorFrank Li <lznuaa@gmail.com>
Thu, 29 Jan 2009 13:28:49 +0000 (21:28 +0800)
committerFrank Li <lznuaa@gmail.com>
Thu, 29 Jan 2009 13:28:49 +0000 (21:28 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/FileDiffDlg.cpp

index 9beff4b..6bf152a 100644 (file)
@@ -104,8 +104,16 @@ void CFileDiffDlg::SetDiff(CTGitPath * path, CString &hash1, CString &hash2)
                m_path1 = *path;\r
                m_path2 = *path;\r
        }\r
                m_path1 = *path;\r
                m_path2 = *path;\r
        }\r
-       m_rev1.m_CommitHash = hash1;\r
-       m_rev2.m_CommitHash = hash2;\r
+       \r
+       BYTE_VECTOR logout;\r
+\r
+       g_Git.GetLog(logout,hash1,path,1,0);\r
+       m_rev1.ParserFromLog(logout);\r
+\r
+       logout.clear();\r
+\r
+       g_Git.GetLog(logout,hash2,path,1,0);\r
+       m_rev2.ParserFromLog(logout);\r
 }\r
 void CFileDiffDlg::SetDiff(CTGitPath * path, GitRev rev1)\r
 {\r
 }\r
 void CFileDiffDlg::SetDiff(CTGitPath * path, GitRev rev1)\r
 {\r