forked from qt-creator/qt-creator
Git: Add commit type to CommitData
Change-Id: I900f3dd89eeeac61e29604ac459d36ecc6c0aa8f Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
cb055c1d0f
commit
06da25f610
@@ -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;
|
||||
|
Reference in New Issue
Block a user