mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: pop stash directly instead of apply+drop
This commit is contained in:
parent
3bcf4e128e
commit
3609d46c1f
2 changed files with 2 additions and 10 deletions
|
@ -59,11 +59,7 @@ namespace SourceGit.ViewModels
|
||||||
if (needPopStash)
|
if (needPopStash)
|
||||||
{
|
{
|
||||||
SetProgressDescription("Re-apply local changes...");
|
SetProgressDescription("Re-apply local changes...");
|
||||||
rs = new Commands.Stash(_repo.FullPath).Apply("stash@{0}");
|
rs = new Commands.Stash(_repo.FullPath).Pop("stash@{0}");
|
||||||
if (rs)
|
|
||||||
{
|
|
||||||
rs = new Commands.Stash(_repo.FullPath).Drop("stash@{0}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
||||||
|
|
|
@ -59,11 +59,7 @@ namespace SourceGit.ViewModels
|
||||||
if (needPopStash)
|
if (needPopStash)
|
||||||
{
|
{
|
||||||
SetProgressDescription("Re-apply local changes...");
|
SetProgressDescription("Re-apply local changes...");
|
||||||
rs = new Commands.Stash(_repo.FullPath).Apply("stash@{0}");
|
rs = new Commands.Stash(_repo.FullPath).Pop("stash@{0}");
|
||||||
if (rs)
|
|
||||||
{
|
|
||||||
rs = new Commands.Stash(_repo.FullPath).Drop("stash@{0}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
||||||
|
|
Loading…
Reference in a new issue