OSDN Git Service

Add Submodule Command
authorFrank Li <lznuaa@gmail.com>
Sat, 14 Mar 2009 09:08:48 +0000 (17:08 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 14 Mar 2009 09:08:48 +0000 (17:08 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/Commands/Command.cpp
src/TortoiseProc/Commands/SubmoduleCommand.cpp [new file with mode: 0644]
src/TortoiseProc/Commands/SubmoduleCommand.h [new file with mode: 0644]
src/TortoiseProc/TortoiseProc.vcproj

index e53ace2..5cb7b74 100644 (file)
@@ -57,7 +57,7 @@
 #include "DropExportCommand.h"\r
 #include "HelpCommand.h"\r
 #include "StashCommand.h"\r
-\r
+#include "SubmoduleCommand.h"\r
 #if 0\r
 \r
 \r
@@ -337,6 +337,11 @@ Command * CommandServer::GetCommand(const CString& sCmd)
                return new StashSaveCommand;\r
        case cmdStashApply:\r
                return new StashApplyCommand;\r
+       case cmdSubAdd:\r
+               return new SubmoduleAddCommand;\r
+       case cmdSubUpdate:\r
+               return new SubmoduleUpdateCommand;\r
+\r
 #if 0\r
 \r
        case cmdCat:\r
diff --git a/src/TortoiseProc/Commands/SubmoduleCommand.cpp b/src/TortoiseProc/Commands/SubmoduleCommand.cpp
new file mode 100644 (file)
index 0000000..739e119
--- /dev/null
@@ -0,0 +1,44 @@
+// TortoiseGit - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2008-2009 - TortoiseGit\r
+\r
+// This program is free software; you can redistribute it and/or\r
+// modify it under the terms of the GNU General Public License\r
+// as published by the Free Software Foundation; either version 2\r
+// of the License, or (at your option) any later version.\r
+\r
+// This program is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+// GNU General Public License for more details.\r
+\r
+// You should have received a copy of the GNU General Public License\r
+// along with this program; if not, write to the Free Software Foundation,\r
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+//\r
+#include "StdAfx.h"\r
+#include "SubmoduleCommand.h"\r
+\r
+#include "MessageBox.h"\r
+#include "RenameDlg.h"\r
+#include "InputLogDlg.h"\r
+#include "Git.h"\r
+#include "DirFileEnum.h"\r
+#include "ShellUpdater.h"\r
+#include "ChangedDlg.h"\r
+\r
+bool SubmoduleAddCommand::Execute()\r
+{\r
+       bool bRet = false;\r
+\r
+\r
+       return bRet;\r
+}\r
+\r
+bool SubmoduleUpdateCommand::Execute()\r
+{\r
+       bool bRet = false;\r
+\r
+\r
+       return bRet;\r
+}\r
diff --git a/src/TortoiseProc/Commands/SubmoduleCommand.h b/src/TortoiseProc/Commands/SubmoduleCommand.h
new file mode 100644 (file)
index 0000000..fd276c6
--- /dev/null
@@ -0,0 +1,40 @@
+// TortoiseGit - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2009 - TortoiseGit\r
+\r
+// This program is free software; you can redistribute it and/or\r
+// modify it under the terms of the GNU General Public License\r
+// as published by the Free Software Foundation; either version 2\r
+// of the License, or (at your option) any later version.\r
+\r
+// This program is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+// GNU General Public License for more details.\r
+\r
+// You should have received a copy of the GNU General Public License\r
+// along with this program; if not, write to the Free Software Foundation,\r
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+//\r
+#pragma once\r
+#include "Command.h"\r
+\r
+class SubmoduleAddCommand : public Command\r
+{\r
+public:\r
+       /**\r
+        * Executes the command.\r
+        */\r
+       virtual bool                    Execute();\r
+};\r
+\r
+class SubmoduleUpdateCommand : public Command\r
+{\r
+public:\r
+       /**\r
+        * Executes the command.\r
+        */\r
+       virtual bool                    Execute();\r
+};\r
+\r
+\r
index ffa8b4d..a0c7fcc 100644 (file)
                                </File>\r
                        </Filter>\r
                        <Filter\r
+                               Name="Submodule"\r
+                               >\r
+                               <File\r
+                                       RelativePath=".\Commands\SubmoduleCommand.cpp"\r
+                                       >\r
+                               </File> \r
+                               <File\r
+                                       RelativePath=".\Commands\SubmoduleCommand.h"\r
+                                       >\r
+                               </File>\r
+                       </Filter>\r
+                       <Filter\r
                                Name="Rename"\r
                                >\r
                                <File\r