#include "SendMailCommand.h"\r
#include "CatCommand.h"\r
#include "RefBrowseCommand.h"\r
-\r
+#include "SVNDCommitCommand.h"\r
+#include "SVNRebaseCommand.h"\r
\r
#if 0\r
\r
cmdSubUpdate,\r
cmdSubSync,\r
cmdRefLog,\r
- cmdRefBrowse\r
+ cmdRefBrowse,\r
+ cmdSVNDCommit,\r
+ cmdSVNRebase,\r
\r
} TGitCommand;\r
\r
{ cmdSubSync, _T("subsync") },\r
{ cmdRefLog, _T("reflog") },\r
{ cmdRefBrowse, _T("refbrowse") },\r
+ { cmdSVNDCommit, _T("svndcommit") },\r
+ { cmdSVNRebase, _T("svnrebase") },\r
};\r
\r
\r
return new CatCommand;\r
case cmdRefBrowse:\r
return new RefBrowseCommand;\r
+ case cmdSVNDCommit:\r
+ return new SVNDCommitCommand;\r
+ case cmdSVNRebase:\r
+ return new SVNRebaseCommand;\r
#if 0\r
\r
\r
--- /dev/null
+// TortoiseGit - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2007-2008 - 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 "SVNDCommitCommand.h"\r
+\r
+#include "SysProgressDlg.h"\r
+#include "ProgressDlg.h"\r
+#include "MessageBox.h"\r
+#include "RenameDlg.h"\r
+#include "Git.h"\r
+#include "ShellUpdater.h"\r
+#include "CommonResource.h"\r
+\r
+bool SVNDCommitCommand::Execute()\r
+{\r
+ if(!g_Git.CheckCleanWorkTree())\r
+ {\r
+ if(CMessageBox::Show(NULL, IDS_ERROR_NOCLEAN_STASH,IDS_APPNAME,MB_YESNO|MB_ICONINFORMATION)==IDYES)\r
+ {\r
+ CString cmd,out;\r
+ cmd=_T("git.exe stash apply ");\r
+ if(g_Git.Run(cmd,&out,CP_ACP))\r
+ {\r
+ CMessageBox::Show(NULL,out,_T("TortoiseGit"),MB_OK);\r
+ return false;\r
+ }\r
+\r
+ }else\r
+ {\r
+ return false;\r
+ }\r
+ }\r
+\r
+ CProgressDlg progress;\r
+ progress.m_GitCmd=_T("git.exe svn dcommit");\r
+ if(progress.DoModal()==IDOK)\r
+ return TRUE;\r
+\r
+ return true;\r
+}\r
--- /dev/null
+// TortoiseGit - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2007 - 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
+/**\r
+ * \ingroup TortoiseProc\r
+ * Copies dropped items.\r
+ */\r
+class SVNDCommitCommand : public Command\r
+{\r
+public:\r
+ /**\r
+ * Executes the command.\r
+ */\r
+ virtual bool Execute();\r
+};\r
+\r
+\r
--- /dev/null
+// TortoiseGit - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2007-2008 - 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 "SVNRebaseCommand.h"\r
+\r
+#include "SysProgressDlg.h"\r
+#include "ProgressDlg.h"\r
+#include "MessageBox.h"\r
+#include "RenameDlg.h"\r
+#include "Git.h"\r
+#include "ShellUpdater.h"\r
+\r
+bool SVNRebaseCommand::Execute()\r
+{\r
+ return true;\r
+}\r
--- /dev/null
+// TortoiseGit - a Windows shell extension for easy version control\r
+\r
+// Copyright (C) 2007 - 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
+/**\r
+ * \ingroup TortoiseProc\r
+ * Copies dropped items.\r
+ */\r
+class SVNRebaseCommand : public Command\r
+{\r
+public:\r
+ /**\r
+ * Executes the command.\r
+ */\r
+ virtual bool Execute();\r
+};\r
+\r
+\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\copy.ico"\r
+ RelativePath=".\copy.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\copy.ico"\r
+ RelativePath="..\Resources\copy.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath=".\explorer.ico"\r
+ RelativePath="..\Resources\explorer.ico"\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\explorer.ico"\r
+ RelativePath=".\explorer.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\newfolder.ico"\r
+ RelativePath=".\newfolder.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\newfolder.ico"\r
+ RelativePath="..\Resources\newfolder.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\refresh.ico"\r
+ RelativePath=".\refresh.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\refresh.ico"\r
+ RelativePath="..\Resources\refresh.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath=".\save.ico"\r
+ RelativePath="..\Resources\save.ico"\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\save.ico"\r
+ RelativePath=".\save.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
<File\r
- RelativePath="..\Resources\up.ico"\r
+ RelativePath=".\up.ico"\r
>\r
</File>\r
<File\r
- RelativePath=".\up.ico"\r
+ RelativePath="..\Resources\up.ico"\r
>\r
</File>\r
<File\r
>\r
</File>\r
</Filter>\r
+ <Filter\r
+ Name="SVN"\r
+ >\r
+ <File\r
+ RelativePath=".\Commands\SVNDCommitCommand.cpp"\r
+ >\r
+ </File>\r
+ <File\r
+ RelativePath=".\Commands\SVNDCommitCommand.h"\r
+ >\r
+ </File>\r
+ <File\r
+ RelativePath=".\Commands\SVNRebaseCommand.cpp"\r
+ >\r
+ </File>\r
+ <File\r
+ RelativePath=".\Commands\SVNRebaseCommand.h"\r
+ >\r
+ </File>\r
+ </Filter>\r
</Filter>\r
<Filter\r
Name="Utility Dialogs"\r