| 1 |
#ifndef GITDIFFOUTPUTPARSER_H |
| 2 |
#define GITDIFFOUTPUTPARSER_H |
| 3 |
|
| 4 |
#include "macros.h" |
| 5 |
#include <wx/string.h> |
| 6 |
class GitDiffOutputParser |
| 7 |
{ |
| 8 |
enum eGitDiffStates { |
| 9 |
kLookingForFileName = 0, |
| 10 |
kLookingForDiff = 1, |
| 11 |
}; |
| 12 |
|
| 13 |
public: |
| 14 |
GitDiffOutputParser(); |
| 15 |
virtual ~GitDiffOutputParser(); |
| 16 |
|
| 17 |
/** |
| 18 |
* @brief parse the output of 'git diff...' command and return a map |
| 19 |
* of file->diff |
| 20 |
* @param rawDiff the output of the command 'git diff ...' |
| 21 |
* @param M [output] |
| 22 |
* @param commitMessage optional store for the commit message in Blame and CommitList dialogs |
| 23 |
*/ |
| 24 |
void GetDiffMap(const wxString& rawDiff, wxStringMap_t& M, wxArrayString* commitMessage = NULL) const; |
| 25 |
}; |
| 26 |
|
| 27 |
#endif // GITDIFFOUTPUTPARSER_H |