forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.0'
Conflicts: qtcreator.pri src/plugins/qnx/qnxutils.cpp Change-Id: I019ad21fb4c128eb736c8ab2d09310757e3be037
This commit is contained in:
@@ -2665,11 +2665,6 @@ void GitClient::continueCommandIfNeeded(const QString &workingDirectory)
|
||||
{
|
||||
CommandInProgress command = checkCommandInProgress(workingDirectory);
|
||||
switch (command) {
|
||||
case Merge:
|
||||
continuePreviousGitCommand(workingDirectory, tr("Continue Merge"),
|
||||
tr("Merge is in progress. What do you want to do?"),
|
||||
tr("Continue"), QLatin1String("merge"));
|
||||
break;
|
||||
case Rebase:
|
||||
case RebaseMerge:
|
||||
continuePreviousGitCommand(workingDirectory, tr("Continue Rebase"),
|
||||
@@ -2677,6 +2672,11 @@ void GitClient::continueCommandIfNeeded(const QString &workingDirectory)
|
||||
tr("Continue"), QLatin1String("rebase"),
|
||||
command != RebaseMerge);
|
||||
break;
|
||||
case Merge:
|
||||
continuePreviousGitCommand(workingDirectory, tr("Continue Merge"),
|
||||
tr("You need to commit changes to finish merge.\nCommit now?"),
|
||||
tr("Commit"), QLatin1String("merge"));
|
||||
break;
|
||||
case Revert:
|
||||
continuePreviousGitCommand(workingDirectory, tr("Continue Revert"),
|
||||
tr("You need to commit changes to finish revert.\nCommit now?"),
|
||||
@@ -3032,9 +3032,9 @@ bool GitClient::getCommitData(const QString &workingDirectory,
|
||||
static inline QString msgCommitted(const QString &amendSHA1, int fileCount)
|
||||
{
|
||||
if (amendSHA1.isEmpty())
|
||||
return GitClient::tr("Committed %n file(s).\n", 0, fileCount);
|
||||
return GitClient::tr("Committed %n file(s).", 0, fileCount) + QLatin1Char('\n');
|
||||
if (fileCount)
|
||||
return GitClient::tr("Amended \"%1\" (%n file(s)).\n", 0, fileCount).arg(amendSHA1);
|
||||
return GitClient::tr("Amended \"%1\" (%n file(s)).", 0, fileCount).arg(amendSHA1) + QLatin1Char('\n');
|
||||
return GitClient::tr("Amended \"%1\".").arg(amendSHA1);
|
||||
}
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@ void StashDialog::showCurrent()
|
||||
{
|
||||
const int index = currentRow();
|
||||
QTC_ASSERT(index >= 0, return);
|
||||
gitClient()->show(m_repository, m_model->at(index).name);
|
||||
gitClient()->show(m_repository, QString(m_model->at(index).name));
|
||||
}
|
||||
|
||||
// Suggest Branch name to restore 'stash@{0}' -> 'stash0-date'
|
||||
|
||||
Reference in New Issue
Block a user