Git: Update current branch after some operations

... to refresh the branch view upstream status.

No need for a full model update here, only the current
branch is influenced.

Change-Id: I6bd17a841988b36221e5015a5858071d33a7b5e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2019-12-27 11:52:59 +01:00
committed by André Hartmann
parent d29650b3ea
commit da6972e0a9
7 changed files with 29 additions and 5 deletions

View File

@@ -1416,6 +1416,12 @@ void GitPlugin::updateBranches(const QString &repository)
m_branchViewFactory->view()->refreshIfSame(repository);
}
void GitPlugin::updateCurrentBranch()
{
if (m_branchViewFactory && m_branchViewFactory->view())
m_branchViewFactory->view()->refreshCurrentBranch();
}
QObject *GitPlugin::remoteCommand(const QStringList &options, const QString &workingDirectory,
const QStringList &)
{