Git: Do the right thing when commiting

Do the right thing when commiting in git. This allows
staged files to be commited without additional changes, etc.

Change-Id: Ib04c91cf9c105c4a2bbe013926112d6d5d3bade6
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Tobias Hunger
2011-10-19 15:49:13 +00:00
parent 366a9d0d0e
commit 494fbdb0d2
9 changed files with 270 additions and 273 deletions

View File

@@ -46,8 +46,8 @@ public:
explicit SubmitFileModel(QObject *parent = 0);
// Convenience to create and add rows containing a file plus status text.
static QList<QStandardItem *> createFileRow(const QString &fileName, const QString &status = QString(), bool checked = true);
QList<QStandardItem *> addFile(const QString &fileName, const QString &status = QString(), bool checked = true);
QList<QStandardItem *> addFile(const QString &fileName, const QString &status = QString(),
bool checked = true, const QVariant &data = QVariant());
// Find convenience that returns the whole row (as opposed to QStandardItemModel::find).
QList<QStandardItem *> findRow(const QString &text, int column = 0) const;
@@ -58,6 +58,7 @@ public:
QString state(int row) const;
QString file(int row) const;
bool checked(int row) const;
QVariant data(int row) const;
bool hasCheckedFiles() const;