mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
feature: use Ctrl
+ click to stash all changes automatically with default options (#351)
This commit is contained in:
parent
965a4b21ae
commit
429e037adb
4 changed files with 27 additions and 9 deletions
|
@ -616,15 +616,9 @@ namespace SourceGit.ViewModels
|
|||
Task.Run(RefreshCommits);
|
||||
}
|
||||
|
||||
public void StashAll()
|
||||
public void StashAll(bool autoStart)
|
||||
{
|
||||
if (PopupHost.CanCreatePopup())
|
||||
{
|
||||
var changes = new List<Models.Change>();
|
||||
changes.AddRange(_workingCopy.Unstaged);
|
||||
changes.AddRange(_workingCopy.Staged);
|
||||
PopupHost.ShowPopup(new StashChanges(this, changes, true));
|
||||
}
|
||||
_workingCopy?.StashAll(autoStart);
|
||||
}
|
||||
|
||||
public void GotoResolve()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue