mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
optimize<Stash>: only run stash command when it's needed
This commit is contained in:
parent
5f5510e6d8
commit
0b6ca9ab8c
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ namespace SourceGit.Views.Popups {
|
|||
}
|
||||
}
|
||||
|
||||
new Commands.Stash(repo).Push(changes, message);
|
||||
if (jobs.Count > 0) new Commands.Stash(repo).Push(changes, message);
|
||||
Models.Watcher.SetEnabled(repo, true);
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue