mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-02 01:34:58 +00:00
fix: SaveAsPatch for untracked changes in stash (#1366)
This commit is contained in:
parent
826619e7c9
commit
729e06d5c0
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ namespace SourceGit.ViewModels
|
|||
var opts = new List<Models.DiffOption>();
|
||||
foreach (var c in _changes)
|
||||
{
|
||||
if (c.Index == Models.ChangeState.Added && _selectedStash.Parents.Count == 3)
|
||||
if (_untracked.Contains(c))
|
||||
opts.Add(new Models.DiffOption(Models.Commit.EmptyTreeSHA1, _selectedStash.Parents[2], c));
|
||||
else
|
||||
opts.Add(new Models.DiffOption(_selectedStash.Parents[0], _selectedStash.SHA, c));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue