1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-05-22 10:15:43 +02:00

Add integration tests for discarding dir changes when filtering by path

When discarding a directory, we only want to discard those files that are
visible in the current filter view. The tests show that this already works
correctly for discarding all changes, but it doesn't for discarding only
unstaged changes: in this case, untracked files are handled correctly, but
changes to tracked files are discarded without respecting the filter.
This commit is contained in:
Stefan Haller
2026-03-22 18:10:18 +01:00
parent 5b829a6721
commit f987b35a9e
3 changed files with 150 additions and 0 deletions
+2
View File
@@ -215,9 +215,11 @@ var tests = []*components.IntegrationTest{
file.CopyMenu,
file.DirWithUntrackedFile,
file.DiscardAllDirChanges,
file.DiscardAllDirChangesWhenFiltering,
file.DiscardRangeSelect,
file.DiscardStagedChanges,
file.DiscardUnstagedDirChanges,
file.DiscardUnstagedDirChangesWhenFiltering,
file.DiscardUnstagedFileChanges,
file.DiscardUnstagedRangeSelect,
file.DiscardVariousChanges,