OSDN Git Service

Add Shell Notification at add, cleanup and remove and rename, CommitDlg.cpp
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / CleanupCommand.cpp
index 4c3b5a5..89324fa 100644 (file)
 bool CleanupCommand::Execute()\r
 {\r
        bool bRet = false;\r
-\r
-       CProgressDlg progress;\r
-       progress.m_GitCmd.Format(_T("Git Clean -d -x"));\r
-       if(progress.DoModal()==IDOK)\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
+               if(progress.DoModal()==IDOK)\r
                        return TRUE;\r
-\r
+       }\r
 #if 0\r
        CProgressDlg progress;\r
        progress.SetTitle(IDS_PROC_CLEANUP);\r
@@ -104,5 +107,6 @@ bool CleanupCommand::Execute()
        }\r
        CMessageBox::Show(hwndExplorer, strMessage, _T("TortoiseSVN"), MB_OK | (strFailedPaths.IsEmpty()?MB_ICONINFORMATION:MB_ICONERROR));\r
 #endif\r
+       CShellUpdater::Instance().Flush();\r
        return bRet;\r
 }\r