forked from qt-creator/qt-creator
GitClient: Replace rev-list command with QtcProcess
There is no need to use VcsCommand when NoOutput is passed. Get rid of asyncUpstreamStatus(). Change-Id: Iae6869be9640c7662545906d28314ac47cd69e3d Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -3166,15 +3166,6 @@ bool GitClient::synchronousSetTrackingBranch(const FilePath &workingDirectory,
|
||||
return result.result() == ProcessResult::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
VcsCommand *GitClient::asyncUpstreamStatus(const FilePath &workingDirectory,
|
||||
const QString &branch,
|
||||
const QString &upstream)
|
||||
{
|
||||
const QStringList args {"rev-list", noColorOption, "--left-right", "--count",
|
||||
branch + "..." + upstream};
|
||||
return vcsExec(workingDirectory, args, nullptr, false, VcsCommand::NoOutput);
|
||||
}
|
||||
|
||||
void GitClient::handleMergeConflicts(const FilePath &workingDir, const QString &commit,
|
||||
const QStringList &files, const QString &abortCommand)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user