Skip to content

Commit 729e06d

Browse files
authored
fix: SaveAsPatch for untracked changes in stash (#1366)
1 parent 826619e commit 729e06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/StashesPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public ContextMenu MakeContextMenu(Models.Stash stash)
180180
var opts = new List<Models.DiffOption>();
181181
foreach (var c in _changes)
182182
{
183-
if (c.Index == Models.ChangeState.Added && _selectedStash.Parents.Count == 3)
183+
if (_untracked.Contains(c))
184184
opts.Add(new Models.DiffOption(Models.Commit.EmptyTreeSHA1, _selectedStash.Parents[2], c));
185185
else
186186
opts.Add(new Models.DiffOption(_selectedStash.Parents[0], _selectedStash.SHA, c));

0 commit comments

Comments
 (0)