optimize<Stash>: new stash push implementation - untracked file will be added before stash

This commit is contained in:
leo 2021-04-30 14:21:52 +08:00
parent c25ea618d0
commit 18df69b703
8 changed files with 108 additions and 91 deletions

View file

@ -28,7 +28,7 @@ namespace SourceGit.Commands {
if (needStash) {
var changes = new LocalChanges(Cwd).Result();
if (changes.Count > 0) {
if (!new Stash(Cwd).Push(null, "PULL_AUTO_STASH", true)) {
if (!new Stash(Cwd).Push(changes, "PULL_AUTO_STASH")) {
return false;
}
} else {