forked from qt-creator/qt-creator
Git: added custom message to EnsureStash popup
Better overview in stash dialog. Change-Id: Icb6d3f8e2e068882e661e017ce8a0bb00ec6dba5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
8b419be12f
commit
b7faf4d674
@@ -901,7 +901,7 @@ void GitPlugin::pull()
|
||||
}
|
||||
}
|
||||
|
||||
GitClient::StashResult stashResult = m_gitClient->ensureStash(state.topLevel());
|
||||
GitClient::StashResult stashResult = m_gitClient->ensureStash(state.topLevel(), QLatin1String("Pull"));
|
||||
switch (stashResult) {
|
||||
case GitClient::StashUnchanged:
|
||||
case GitClient::Stashed:
|
||||
@@ -1031,7 +1031,7 @@ void GitPlugin::promptApplyPatch()
|
||||
void GitPlugin::applyPatch(const QString &workingDirectory, QString file)
|
||||
{
|
||||
// Ensure user has been notified about pending changes
|
||||
switch (m_gitClient->ensureStash(workingDirectory)) {
|
||||
switch (m_gitClient->ensureStash(workingDirectory, QLatin1String("Apply-Patch"))) {
|
||||
case GitClient::StashUnchanged:
|
||||
case GitClient::Stashed:
|
||||
case GitClient::NotStashed:
|
||||
|
Reference in New Issue
Block a user