MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / readyWork

Method readyWork

src/plugins/git/client/gitclient.cpp:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80GitCommand *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
98void GitClientPrivate::instantBlame()
99{

Callers

nothing calls this directly

Calls 6

connectFunction · 0.85
cleanedStdOutMethod · 0.80
setErrorMessageMethod · 0.80
cleanedStdErrMethod · 0.80
addWidgetMethod · 0.45
setInfoMethod · 0.45

Tested by

no test coverage detected