mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00: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);
|
Models.Watcher.SetEnabled(repo, true);
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue