mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00: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…
Add table
Add a link
Reference in a new issue