jesseduffield.lazygit/pkg/commands/patch
Stefan Haller c5acad777d Don't use hunk mode for added or deleted files
When entering staging (or patch building) for an added or deleted file, it
doesn't make sense to use hunk mode, because pressing space would stage/unstage
the entire file, and if the user wanted to do that, they would have pressed
space in the Files panel. So always use line mode for added/deleted files by
default, even if the useHunkModeInStagingView user config is on.
2025-07-27 12:10:25 +02:00
..
format.go Export PatchLine.isChange 2025-07-04 10:14:35 +02:00
hunk.go refactor patch code 2023-03-19 16:30:39 +11:00
parse.go refactor patch code 2023-03-19 16:30:39 +11:00
patch.go Don't use hunk mode for added or deleted files 2025-07-27 12:10:25 +02:00
patch_builder.go Toggle only added/deleted lines in patch building view 2025-07-04 10:14:35 +02:00
patch_line.go Export PatchLine.isChange 2025-07-04 10:14:35 +02:00
patch_test.go Don't use hunk mode for added or deleted files 2025-07-27 12:10:25 +02:00
transform.go Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00