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

Add test demonstrating problem with staging only some changed lines

Given a block of consecutive changed lines, trying to stage only some of them
doesn't work correctly in all cases:

- if the staged lines are the last lines in the block of changes, it already
  works
- when staging some changes in the middle of the block, it doesn't work as
  desired, but we also don't try to fix this case in this branch, because it's
  harder to do, and not as common as the other two
- staging the first lines of the block doesn't work as desired, and we will fix
  that in this branch.
This commit is contained in:
Stefan Haller
2026-03-15 14:05:09 +01:00
parent 2f6d20275a
commit b95bfeb164
4 changed files with 225 additions and 0 deletions
+3
View File
@@ -379,6 +379,9 @@ var tests = []*components.IntegrationTest{
staging.Search,
staging.StageHunks,
staging.StageLines,
staging.StagePartialBlockOfChangesFirstLines,
staging.StagePartialBlockOfChangesLastLines,
staging.StagePartialBlockOfChangesMiddleLines,
staging.StageRanges,
stash.Apply,
stash.ApplyPatch,