| 78 | } |
| 79 | |
| 80 | GitCommand *GitClientPrivate::readyWork(GitType type, const QString &workspace, const QString &name) |
| 81 | { |
| 82 | int index = gitTabWidget->addWidget(type, name); |
| 83 | GitCommand *cmd = new GitCommand(workspace); |
| 84 | connect(cmd, &GitCommand::finished, this, [=](int code) { |
| 85 | if (code == 0) { |
| 86 | gitTabWidget->setInfo(index, cmd->cleanedStdOut()); |
| 87 | } else { |
| 88 | gitTabWidget->setErrorMessage(index, tr("Failed to retrieve data.")); |
| 89 | qWarning() << cmd->cleanedStdErr(); |
| 90 | } |
| 91 | |
| 92 | cmd->deleteLater(); |
| 93 | }); |
| 94 | |
| 95 | return cmd; |
| 96 | } |
| 97 | |
| 98 | void GitClientPrivate::instantBlame() |
| 99 | { |
nothing calls this directly
no test coverage detected