forked from qt-creator/qt-creator
Git: Allow removing stale remote branches
... from the Branch View context menu on a specific remote. Change-Id: Ic7772abe32795a5d11bd4cae989f8d66cc4322e0 Reviewed-by: Miklós Márton <martonmiklosqdev@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
3dc511f1d1
commit
00e04d5022
@@ -1312,6 +1312,17 @@ void GitClient::reset(const QString &workingDirectory, const QString &argument,
|
||||
vcsExec(workingDirectory, arguments, nullptr, true, flags);
|
||||
}
|
||||
|
||||
void GitClient::removeStaleRemoteBranches(const QString &workingDirectory, const QString &remote)
|
||||
{
|
||||
const QStringList arguments = {"remote", "prune", remote};
|
||||
|
||||
VcsCommand *command = vcsExec(workingDirectory, arguments, nullptr, true,
|
||||
VcsCommand::ShowSuccessMessage);
|
||||
|
||||
connect(command, &VcsCommand::success,
|
||||
this, [workingDirectory]() { GitPlugin::instance()->updateBranches(workingDirectory); });
|
||||
}
|
||||
|
||||
void GitClient::recoverDeletedFiles(const QString &workingDirectory)
|
||||
{
|
||||
const SynchronousProcessResponse response =
|
||||
|
Reference in New Issue
Block a user