CString logout;\r
\r
CLogDataVector revs;\r
- revs.ParserShortLog(&cmdLinePath,2);\r
+ \r
+ revs.ParserShortLog(&cmdLinePath,hash,2);\r
if( revs.size() == 0)\r
{\r
CMessageBox::Show(hWndExplorer, IDS_ERR_NOPREVREVISION, IDS_APPNAME, MB_ICONERROR);\r
if( revs.size() == 1 )\r
{\r
CGitDiff diff;\r
- bRet = diff.DiffNull(&cmdLinePath,revs[0].m_CommitHash);\r
+ bRet = (diff.DiffNull(&cmdLinePath,revs[0].m_CommitHash) != 0);\r
}\r
\r
if( revs.size() == 2 )\r
{\r
CGitDiff diff;\r
- bRet = diff.Diff(&cmdLinePath, revs[0].m_CommitHash, revs[1].m_CommitHash, false);\r
+ bRet = diff.Diff(&cmdLinePath,&cmdLinePath, revs[0].m_CommitHash, revs[1].m_CommitHash, false);\r
}\r
}\r
else\r