VcsCommand: Add std channel getters

Conform to QtcProcess interface and provide cleanedStdOut()
and cleanedStdErr() getters, to be called after the process
finished.

Use cleanedStdOut() inside DiffEditorController for getting
the output after the process finished instead of connecting
to stdOutText() signal.

Change-Id: I7ba3735b0ab2167ac1f3b0954dd5dc9553910aac
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-09-19 08:27:41 +02:00
parent 5b0c2bcbf8
commit 3978cdde6c
3 changed files with 15 additions and 7 deletions

View File

@@ -372,6 +372,16 @@ void VcsCommand::cancel()
emit terminate();
}
QString VcsCommand::cleanedStdOut() const
{
return d->m_stdOut;
}
QString VcsCommand::cleanedStdErr() const
{
return d->m_stdErr;
}
CommandResult VcsCommand::runCommand(const CommandLine &command, int timeoutS)
{
QtcProcess process;