{\r
CString sCmd;\r
sCmd.Format(_T("\"%s\" /command:blame /path:\"%s\""),\r
- (LPCTSTR)(CPathUtils::GetAppDirectory()+_T("TortoiseProc.exe")), g_Git.m_CurrentDir+filepath->GetWinPath());\r
+ (LPCTSTR)(CPathUtils::GetAppDirectory()+_T("TortoiseProc.exe")), g_Git.m_CurrentDir+_T("\\")+filepath->GetWinPath());\r
\r
CAppUtils::LaunchApplication(sCmd, NULL, false);\r
}\r
{\r
CString sCmd;\r
sCmd.Format(_T("\"%s\" /command:log /path:\"%s\""),\r
- (LPCTSTR)(CPathUtils::GetAppDirectory()+_T("TortoiseProc.exe")), g_Git.m_CurrentDir+filepath->GetWinPath());\r
+ (LPCTSTR)(CPathUtils::GetAppDirectory()+_T("TortoiseProc.exe")), g_Git.m_CurrentDir+_T("\\")+filepath->GetWinPath());\r
\r
CAppUtils::LaunchApplication(sCmd, NULL, false);\r
}\r
bool CleanupCommand::Execute()\r
{\r
bool bRet = false;\r
-\r
- if(CMessageBox::Show(NULL,_T("Are you sure clean all unversion files"),_T("TortoiseGit"),MB_YESNO)==IDYES)\r
+ CString temp;\r
+ temp.Format(_T("Are you sure clean all untracked files"));\r
+ if(CMessageBox::Show(NULL,temp,_T("TortoiseGit"),MB_YESNO)==IDYES)\r
{\r
CProgressDlg progress;\r
- progress.m_GitCmd.Format(_T("Git Clean -d -x -f"));\r
+ progress.m_GitCmd.Format(_T("git clean -d -x -f "));\r
if(progress.DoModal()==IDOK)\r
return TRUE;\r
}\r
#include "BlameCommand.h"\r
#include "SettingsCommand.h"\r
#include "ConflictEditorCommand.h"\r
+#include "CleanupCommand.h"\r
+\r
#if 0\r
\r
\r
#include "CatCommand.h"\r
#include "CheckoutCommand.h"\r
-#include "CleanupCommand.h"\r
+\r
\r
\r
#include "CopyCommand.h"\r
return new SettingsCommand;\r
case cmdConflictEditor:\r
return new ConflictEditorCommand;\r
+ case cmdCleanup:\r
+ return new CleanupCommand;\r
#if 0\r
\r
case cmdCat:\r
return new CatCommand;\r
case cmdCheckout:\r
return new CheckoutCommand;\r
- case cmdCleanup:\r
- return new CleanupCommand;\r
+\r
\r
\r
case cmdCopy:\r
{\r
if (m_path.IsUrl())\r
SetWindowText(m_sTitle + _T(" - ") + m_path.GetUIPathString());\r
+ else if (m_path.IsEmpty())\r
+ SetWindowText(m_sTitle + _T(" - ") + CString(_T("Whole Project")));\r
else if (m_path.IsDirectory())\r
SetWindowText(m_sTitle + _T(" - ") + m_path.GetWinPathString());\r
else\r