diff --git a/src/ViewModels/Checkout.cs b/src/ViewModels/Checkout.cs index 644d52eb..84f039d0 100644 --- a/src/ViewModels/Checkout.cs +++ b/src/ViewModels/Checkout.cs @@ -36,14 +36,8 @@ namespace SourceGit.ViewModels { if (PreAction == Models.DealWithLocalChanges.StashAndReaply) { - SetProgressDescription("Adding untracked changes ..."); - var succ = new Commands.Add(_repo.FullPath).Exec(); - if (succ) - { - SetProgressDescription("Stash local changes ..."); - succ = new Commands.Stash(_repo.FullPath).Push("CHECKOUT_AUTO_STASH"); - } - + SetProgressDescription("Stash local changes ..."); + var succ = new Commands.Stash(_repo.FullPath).Push("CHECKOUT_AUTO_STASH"); if (!succ) { CallUIThread(() => _repo.SetWatcherEnabled(true)); diff --git a/src/ViewModels/CheckoutCommit.cs b/src/ViewModels/CheckoutCommit.cs index 3f610e6f..841659c4 100644 --- a/src/ViewModels/CheckoutCommit.cs +++ b/src/ViewModels/CheckoutCommit.cs @@ -40,14 +40,8 @@ namespace SourceGit.ViewModels { if (AutoStash) { - SetProgressDescription("Adding untracked changes ..."); - var succ = new Commands.Add(_repo.FullPath).Exec(); - if (succ) - { - SetProgressDescription("Stash local changes ..."); - succ = new Commands.Stash(_repo.FullPath).Push("CHECKOUT_AUTO_STASH"); - } - + SetProgressDescription("Stash local changes ..."); + var succ = new Commands.Stash(_repo.FullPath).Push("CHECKOUT_AUTO_STASH"); if (!succ) { CallUIThread(() => _repo.SetWatcherEnabled(true)); diff --git a/src/ViewModels/CreateBranch.cs b/src/ViewModels/CreateBranch.cs index 1b472d58..2afcef4a 100644 --- a/src/ViewModels/CreateBranch.cs +++ b/src/ViewModels/CreateBranch.cs @@ -91,14 +91,8 @@ namespace SourceGit.ViewModels { if (PreAction == Models.DealWithLocalChanges.StashAndReaply) { - SetProgressDescription("Adding untracked changes..."); - var succ = new Commands.Add(_repo.FullPath).Exec(); - if (succ) - { - SetProgressDescription("Stash local changes"); - succ = new Commands.Stash(_repo.FullPath).Push("CREATE_BRANCH_AUTO_STASH"); - } - + SetProgressDescription("Stash local changes"); + var succ = new Commands.Stash(_repo.FullPath).Push("CREATE_BRANCH_AUTO_STASH"); if (!succ) { CallUIThread(() => _repo.SetWatcherEnabled(true)); diff --git a/src/ViewModels/Pull.cs b/src/ViewModels/Pull.cs index 77867baf..676800aa 100644 --- a/src/ViewModels/Pull.cs +++ b/src/ViewModels/Pull.cs @@ -134,14 +134,8 @@ namespace SourceGit.ViewModels { if (PreAction == Models.DealWithLocalChanges.StashAndReaply) { - SetProgressDescription("Adding untracked changes..."); - var succ = new Commands.Add(_repo.FullPath).Exec(); - if (succ) - { - SetProgressDescription("Stash local changes..."); - succ = new Commands.Stash(_repo.FullPath).Push("PULL_AUTO_STASH"); - } - + SetProgressDescription("Stash local changes..."); + var succ = new Commands.Stash(_repo.FullPath).Push("PULL_AUTO_STASH"); if (!succ) { CallUIThread(() => _repo.SetWatcherEnabled(true));