OSDN Git Service

Git Blame Add context menu Action
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / SwitchCommand.cpp
index 400414b..551d663 100644 (file)
 \r
 bool SwitchCommand::Execute()\r
 {\r
 \r
 bool SwitchCommand::Execute()\r
 {\r
-       return CAppUtils::Switch(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
 }\r