Do not alter CGitHeadFileList after it was loaded and stored
[TortoiseGit.git] / src / TortoiseProc / MassiveGitTask.h
blob1cc93c0253fd4d5384262dd6f3de8568ce3a323c
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 #define MAX_COMMANDLINE_LENGTH 30000
26 typedef BOOL (CGitProgressDlg::*NOTIFY_CALLBACK)(const CTGitPath& path, git_wc_notify_action_t action, int status, CString *strErr);
28 class CMassiveGitTask
30 public:
31 CMassiveGitTask(CString params);
32 ~CMassiveGitTask(void);
34 void AddFile(CString filename);
35 void AddFile(CTGitPath filename);
36 bool ExecuteWithNotify(CTGitPathList *pathList, BOOL &cancel, git_wc_notify_action_t action, CGitProgressDlg * instance, NOTIFY_CALLBACK m_NotifyCallbackMethod);
37 bool Execute(BOOL &cancel);
39 private:
40 bool ExecuteCommands(BOOL &cancel);
41 bool m_bUnused;
42 CString m_sParams;
43 CTGitPathList m_pathList;
44 CGitProgressDlg * m_NotifyCallbackInstance;
45 NOTIFY_CALLBACK m_NotifyCallbackMethod;
46 git_wc_notify_action_t m_NotifyCallbackAction;