forked from qt-creator/qt-creator
GitClient: Replace for-each-ref command with QtcProcess
There is no need to use VcsCommand when NoOutput is passed. Get rid of asyncForEachRefCmd(). Change-Id: I91b2226c365c7ce374eccc4884aba7aab5158cb2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -2017,12 +2017,6 @@ bool GitClient::synchronousForEachRefCmd(const FilePath &workingDirectory, QStri
|
||||
return false;
|
||||
}
|
||||
|
||||
VcsCommand *GitClient::asyncForEachRefCmd(const FilePath &workingDirectory, QStringList args) const
|
||||
{
|
||||
args.push_front("for-each-ref");
|
||||
return vcsExec(workingDirectory, args, nullptr, false, VcsCommand::NoOutput);
|
||||
}
|
||||
|
||||
bool GitClient::synchronousRemoteCmd(const FilePath &workingDirectory, QStringList remoteArgs,
|
||||
QString *output, QString *errorMessage, bool silent) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user