If running on Win XP or Vista, use a smaller command line max length
[TortoiseGit.git] / src / TortoiseProc / MassiveGitTask.h
blob455071f0254f2d0132dcc5551ff8c56a669cebd1
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2011-2012 - Sven Strickroth <email@cs-ware.de>
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
21 #include "GitProgressDlg.h"
22 #include "TGitPath.h"
24 typedef BOOL (CGitProgressDlg::*NOTIFY_CALLBACK)(const CTGitPath& path, git_wc_notify_action_t action, int status, CString *strErr);
26 class CMassiveGitTask
28 public:
29 CMassiveGitTask(CString params);
30 ~CMassiveGitTask(void);
32 void AddFile(CString filename);
33 void AddFile(CTGitPath filename);
34 bool ExecuteWithNotify(CTGitPathList *pathList, BOOL &cancel, git_wc_notify_action_t action, CGitProgressDlg * instance, NOTIFY_CALLBACK m_NotifyCallbackMethod);
35 bool Execute(BOOL &cancel);
37 private:
38 bool ExecuteCommands(BOOL &cancel);
39 bool m_bUnused;
40 CString m_sParams;
41 CTGitPathList m_pathList;
42 CGitProgressDlg * m_NotifyCallbackInstance;
43 NOTIFY_CALLBACK m_NotifyCallbackMethod;
44 git_wc_notify_action_t m_NotifyCallbackAction;