Skip to content

Commit 898528f

Browse files
committed
fix: unable to save selected staged changes to patch
Signed-off-by: leo <[email protected]>
1 parent b166053 commit 898528f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/WorkingCopy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public async Task UnstageChangesAsync(List<Models.Change> changes, Models.Change
417417

418418
public async Task SaveChangesToPatchAsync(List<Models.Change> changes, bool isUnstaged, string saveTo)
419419
{
420-
var succ = await Commands.SaveChangesAsPatch.ProcessLocalChangesAsync(_repo.FullPath, _selectedUnstaged, isUnstaged, saveTo);
420+
var succ = await Commands.SaveChangesAsPatch.ProcessLocalChangesAsync(_repo.FullPath, changes, isUnstaged, saveTo);
421421
if (succ)
422422
App.SendNotification(_repo.FullPath, App.Text("SaveAsPatchSuccess"));
423423
}

0 commit comments

Comments
 (0)