OSDN Git Service

Add Shell Notification at add, cleanup and remove and rename, CommitDlg.cpp
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / SwitchCommand.cpp
index 5582227..551d663 100644 (file)
 \r
 bool SwitchCommand::Execute()\r
 {\r
-       return CAppUtils::CreateBranchTag(NULL);\r
+       CString base=parser.GetVal(_T("rev"));\r
+       CString *p=&base;\r
+       if(base.IsEmpty())\r
+               p=NULL;\r
+\r
+       return CAppUtils::Switch(p);\r
 }\r