Signed-off-by: Frank Li <lznuaa@gmail.com>
}\r
}\r
#endif\r
+ if(pathList.GetCount()>0)\r
+ g_Git.m_CurrentDir=pathList[0].GetWinPathString();\r
+ \r
while (bFailed)\r
{\r
bFailed = false;\r
{\r
bStrict = TRUE;\r
}\r
-#endif\r
+#endif \r
+ \r
+ if(pathList.GetCount()>0)\r
+ g_Git.m_CurrentDir=pathList[0].GetWinPathString();\r
+ \r
CLogDlg dlg;\r
theApp.m_pMainWnd = &dlg;\r
// dlg.SetParams(cmdLinePath, pegrev, revstart, revend, limit, bStrict);\r
CTGitPathList pathList;\r
if ( parser.HasKey(_T("pathfile")) )\r
{\r
-#if 0\r
+\r
CString sPathfileArgument = CPathUtils::GetLongPathname(parser.GetVal(_T("pathfile")));\r
cmdLinePath.SetFromUnknown(sPathfileArgument);\r
if (pathList.LoadFromFile(cmdLinePath)==false)\r
// This was a path to a temporary file - it's got no meaning now, and\r
// anybody who uses it again is in for a problem...\r
cmdLinePath.Reset();\r
-#endif\r
+\r
}\r
else\r
{\r