OSDN Git Service

Add Export Command
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / Command.cpp
index b53e972..5f8f059 100644 (file)
 #include "PullCommand.h"\r
 #include "FetchCommand.h"\r
 #include "PushCommand.h"\r
+#include "BranchCommand.h"\r
+#include "TagCommand.h"\r
+#include "MergeCommand.h"\r
+#include "SwitchCommand.h"\r
+#include "ExportCommand.h"\r
 \r
 #if 0\r
 #include "AddCommand.h"\r
 #include "DropCopyCommand.h"\r
 #include "DropExportCommand.h"\r
 #include "DropMoveCommand.h"\r
-#include "ExportCommand.h"\r
+\r
 #include "HelpCommand.h"\r
 #include "IgnoreCommand.h"\r
 #include "ImportCommand.h"\r
 #include "LockCommand.h"\r
 \r
-#include "MergeCommand.h"\r
+\r
 #include "MergeAllCommand.h"\r
 #include "PasteCopyCommand.h"\r
 #include "PasteMoveCommand.h"\r
@@ -79,7 +84,7 @@
 #include "RTFMCommand.h"\r
 #include "SettingsCommand.h"\r
 #include "ShowCompareCommand.h"\r
-#include "SwitchCommand.h"\r
+\r
 #include "UnIgnoreCommand.h"\r
 #include "UnLockCommand.h"\r
 #include "UpdateCheckCommand.h"\r
@@ -91,6 +96,7 @@ typedef enum
        cmdAbout,\r
        cmdAdd,\r
        cmdBlame,\r
+       cmdBranch,\r
        cmdCat,\r
        cmdCheckout,\r
        cmdCleanup,\r
@@ -135,6 +141,7 @@ typedef enum
        cmdSettings,\r
        cmdShowCompare,\r
        cmdSwitch,\r
+       cmdTag,\r
        cmdUnIgnore,\r
        cmdUnlock,\r
        cmdUpdate,\r
@@ -152,6 +159,7 @@ static const struct CommandInfo
        {       cmdAbout,                       _T("about")                             },\r
        {       cmdAdd,                         _T("add")                               },\r
        {       cmdBlame,                       _T("blame")                             },\r
+       {       cmdBranch,                      _T("branch")                    },\r
        {       cmdCat,                         _T("cat")                               },\r
        {       cmdCheckout,            _T("checkout")                  },\r
        {       cmdCleanup,                     _T("cleanup")                   },\r
@@ -196,6 +204,7 @@ static const struct CommandInfo
        {       cmdSettings,            _T("settings")                  },\r
        {       cmdShowCompare,         _T("showcompare")               },\r
        {       cmdSwitch,                      _T("switch")                    },\r
+       {       cmdTag,                         _T("tag")                               },\r
        {       cmdUnIgnore,            _T("unignore")                  },\r
        {       cmdUnlock,                      _T("unlock")                    },\r
        {       cmdUpdate,                      _T("update")                    },\r
@@ -254,6 +263,16 @@ Command * CommandServer::GetCommand(const CString& sCmd)
                return new FetchCommand;\r
        case cmdPush:\r
                return new PushCommand;\r
+       case cmdBranch:\r
+               return new BranchCommand;\r
+       case cmdTag:\r
+               return new TagCommand;\r
+       case cmdMerge:\r
+               return new MergeCommand;\r
+       case cmdSwitch:\r
+               return new SwitchCommand;\r
+       case cmdExport:\r
+               return new ExportCommand;\r
 #if 0\r
        case cmdAdd:\r
                return new AddCommand;\r
@@ -285,8 +304,7 @@ Command * CommandServer::GetCommand(const CString& sCmd)
                return new DropExportCommand;\r
        case cmdDropMove:\r
                return new DropMoveCommand;\r
-       case cmdExport:\r
-               return new ExportCommand;\r
+\r
        case cmdHelp:\r
                return new HelpCommand;\r
        case cmdIgnore:\r
@@ -331,8 +349,7 @@ Command * CommandServer::GetCommand(const CString& sCmd)
                return new SettingsCommand;\r
        case cmdShowCompare:\r
                return new ShowCompareCommand;\r
-       case cmdSwitch:\r
-               return new SwitchCommand;\r
+\r
        case cmdUnIgnore:\r
                return new UnIgnoreCommand;\r
        case cmdUnlock:\r