forked from qt-creator/qt-creator
Git: Make checkout asynchronous
It can be slow when many files are replaced. Change-Id: I308698ef36973374f4526107fbda0d9ad907e707 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
86732dbdc0
commit
762fb5c353
@@ -529,7 +529,7 @@ void BranchModel::checkoutBranch(const QModelIndex &idx)
|
||||
|
||||
// No StashGuard since this function for now is only used with clean working dir.
|
||||
// If it is ever used from another place, please add StashGuard here
|
||||
m_client->synchronousCheckout(m_workingDirectory, branch);
|
||||
m_client->checkout(m_workingDirectory, branch, GitClient::StashMode::NoStash);
|
||||
}
|
||||
|
||||
bool BranchModel::branchIsMerged(const QModelIndex &idx)
|
||||
|
||||
Reference in New Issue
Block a user