forked from qt-creator/qt-creator
VcsCommand: Simplify public runCommand()
Get rid of unused workingDirectory (default working directory will be used) and exitCodeInterpreter. Simplify internals a bit. Change-Id: I2a7547e5a594dd7a21f390daeb06778656e9e971 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -170,7 +170,7 @@ CommandResult VcsBaseClientImpl::vcsFullySynchronousExec(const FilePath &working
|
||||
command.addFlags(flags);
|
||||
if (codec)
|
||||
command.setCodec(codec);
|
||||
return command.runCommand(cmdLine, workingDir, timeoutS > 0 ? timeoutS : vcsTimeoutS());
|
||||
return command.runCommand(cmdLine, timeoutS > 0 ? timeoutS : vcsTimeoutS());
|
||||
}
|
||||
|
||||
void VcsBaseClientImpl::resetCachedVcsInfo(const FilePath &workingDir)
|
||||
@@ -214,7 +214,7 @@ CommandResult VcsBaseClientImpl::vcsSynchronousExec(const FilePath &workingDir,
|
||||
VcsCommand command(workingDir, env.isValid() ? env : Environment::systemEnvironment());
|
||||
command.addFlags(flags);
|
||||
command.setCodec(outputCodec);
|
||||
return command.runCommand({vcsBinary(), args}, workingDir, vcsTimeoutS());
|
||||
return command.runCommand({vcsBinary(), args}, vcsTimeoutS());
|
||||
}
|
||||
|
||||
int VcsBaseClientImpl::vcsTimeoutS() const
|
||||
|
||||
Reference in New Issue
Block a user