Git: Add commit type to CommitData

Change-Id: I900f3dd89eeeac61e29604ac459d36ecc6c0aa8f
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-04-30 21:29:25 +03:00
committed by Orgad Shaneh
parent cb055c1d0f
commit 06da25f610
8 changed files with 23 additions and 23 deletions

View File

@@ -30,6 +30,8 @@
#ifndef COMMITDATA_H
#define COMMITDATA_H
#include "gitsettings.h" // CommitType
#include <QStringList>
#include <QPair>
@@ -85,6 +87,7 @@ Q_DECLARE_FLAGS(FileStates, FileState)
class CommitData
{
public:
CommitData(CommitType type = SimpleCommit);
// A pair of state string/file name ('modified', 'file.cpp').
typedef QPair<FileStates, QString> StateFilePair;
@@ -99,6 +102,7 @@ public:
static QString stateDisplayName(const FileStates &state);
CommitType commitType;
QString amendSHA1;
QString commitEncoding;
GitSubmitEditorPanelInfo panelInfo;