forked from qt-creator/qt-creator
VcsBase: Get rid of RunFlags::SilentOutput
In theory in was used only when we passed a non-null editor together with CommandOutputBindMode::ToVcsWindow into VcsBaseClientImpl::createCommand(). But there was no such a case in the whole codebase. Change-Id: I4b1162141e0849b49c12ee464e635debb62d5353 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -142,12 +142,8 @@ void VcsCommandPrivate::installStdCallbacks(QtcProcess *process)
|
|||||||
|| m_flags & RunFlags::ShowStdOut) {
|
|| m_flags & RunFlags::ShowStdOut) {
|
||||||
process->setTextChannelMode(Channel::Output, TextChannelMode::MultiLine);
|
process->setTextChannelMode(Channel::Output, TextChannelMode::MultiLine);
|
||||||
connect(process, &QtcProcess::textOnStandardOutput, this, [this](const QString &text) {
|
connect(process, &QtcProcess::textOnStandardOutput, this, [this](const QString &text) {
|
||||||
if (m_flags & RunFlags::ShowStdOut) {
|
if (m_flags & RunFlags::ShowStdOut)
|
||||||
if (m_flags & RunFlags::SilentOutput)
|
|
||||||
VcsOutputWindow::appendSilently(text);
|
|
||||||
else
|
|
||||||
VcsOutputWindow::append(text);
|
VcsOutputWindow::append(text);
|
||||||
}
|
|
||||||
if (m_flags & RunFlags::ProgressiveOutput)
|
if (m_flags & RunFlags::ProgressiveOutput)
|
||||||
emit q->stdOutText(text);
|
emit q->stdOutText(text);
|
||||||
});
|
});
|
||||||
|
@@ -20,9 +20,8 @@ enum class RunFlags {
|
|||||||
SuppressCommandLogging = (1 << 5), // No starting command log entry.
|
SuppressCommandLogging = (1 << 5), // No starting command log entry.
|
||||||
ShowSuccessMessage = (1 << 6), // Show message about successful completion of command.
|
ShowSuccessMessage = (1 << 6), // Show message about successful completion of command.
|
||||||
ShowStdOut = (1 << 7), // Show standard output.
|
ShowStdOut = (1 << 7), // Show standard output.
|
||||||
SilentOutput = (1 << 8), // Only when ShowStdOut is set to true, outputs silently.
|
ProgressiveOutput = (1 << 8), // Emit stdOutText() and stdErrText() signals.
|
||||||
ProgressiveOutput = (1 << 9), // Emit stdOutText() and stdErrText() signals.
|
ExpectRepoChanges = (1 << 9), // Expect changes in repository by the command.
|
||||||
ExpectRepoChanges = (1 << 10), // Expect changes in repository by the command.
|
|
||||||
NoOutput = SuppressStdErr | SuppressFailMessage | SuppressCommandLogging
|
NoOutput = SuppressStdErr | SuppressFailMessage | SuppressCommandLogging
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user