forked from qt-creator/qt-creator
Git: Use stash pop instead of apply...
... when the stash should be removed on successful pop Change-Id: I39b2c01b0a518d3c70bcb8dc898191cca6d3e84d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
53443616e5
commit
daef1fbb88
@@ -207,10 +207,7 @@ void BranchDialog::checkout()
|
||||
if (!stashMessage.isEmpty() && branchCheckoutDialog.moveLocalChangesToNextBranch())
|
||||
gitClient->stashPop(m_repository);
|
||||
else if (branchCheckoutDialog.popStashOfNextBranch())
|
||||
gitClient->synchronousStashRestore(m_repository, stashName);
|
||||
|
||||
if (branchCheckoutDialog.hasStashForNextBranch())
|
||||
gitClient->synchronousStashRemove(m_repository, stashName);
|
||||
gitClient->synchronousStashRestore(m_repository, stashName, true);
|
||||
}
|
||||
enableButtons();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user