OSDN Git Service

Add Shell Notification at add, cleanup and remove and rename, CommitDlg.cpp
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / RenameCommand.cpp
index e203adc..b4a4e6d 100644 (file)
@@ -61,6 +61,10 @@ bool RenameCommand::Execute()
                CMessageBox::Show(hwndExplorer, output, _T("TortoiseGit"), MB_OK);\r
        }\r
 \r
                CMessageBox::Show(hwndExplorer, output, _T("TortoiseGit"), MB_OK);\r
        }\r
 \r
+       CTGitPath newpath;\r
+       newpath.SetFromGit(sNewName);\r
+\r
+       CShellUpdater::Instance().AddPathForUpdate(newpath);\r
 #if 0\r
        TRACE(_T("rename file %s to %s\n"), (LPCTSTR)cmdLinePath.GetWinPathString(), (LPCTSTR)sNewName);\r
        CTSVNPath destinationPath(basePath);\r
 #if 0\r
        TRACE(_T("rename file %s to %s\n"), (LPCTSTR)cmdLinePath.GetWinPathString(), (LPCTSTR)sNewName);\r
        CTSVNPath destinationPath(basePath);\r
@@ -248,5 +252,6 @@ bool RenameCommand::Execute()
                }\r
        }\r
 #endif\r
                }\r
        }\r
 #endif\r
+       CShellUpdater::Instance().Flush();\r
        return bRet;\r
 }\r
        return bRet;\r
 }\r