forked from qt-creator/qt-creator
VcsCommand: Change the default logic for fully sync
Remove VcsCommand::FullySynchronous flag. Rename VcsCommand::NoFullySync into UseEventLoop. By default the command will run fully synchronous (i.e. without nested event loop). Only when UseEventLoop is specified, and the command runs in main thread, the nested event loop will be used. This change should preserve the current behavior on all code paths. Change-Id: Id4bbaf68402ceed5e3fcc6f294521e87eb0b8d4d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -2967,7 +2967,7 @@ bool GitClient::addAndCommit(const FilePath &repositoryDirectory,
|
||||
}
|
||||
|
||||
const CommandResult result = vcsSynchronousExec(repositoryDirectory, arguments,
|
||||
VcsCommand::NoFullySync);
|
||||
VcsCommand::UseEventLoop);
|
||||
if (result.result() == ProcessResult::FinishedWithSuccess) {
|
||||
VcsOutputWindow::appendMessage(msgCommitted(amendSHA1, commitCount));
|
||||
GitPlugin::updateCurrentBranch();
|
||||
|
||||
Reference in New Issue
Block a user