jesseduffield.lazygit/pkg/commands/patch
Stefan Haller 42bbe965fa Render only + and - lines as included in a patch
It is confusing to get header lines, hunk headers, or context lines rendered as
being included in a custom patch, when including these makes no difference to
the patch.

This is only a visual change; internally, we still record these non-patch lines
as being included in the patch. It doesn't matter though; you can press space on
a header line and nothing happens.

It would probably be cleaner to only record + and - lines in the includedLines
array, but that would be a bit more work, and doesn't seem worth it.
2025-07-04 10:14:35 +02:00
..
format.go Render only + and - lines as included in a patch 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 Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
patch_builder.go Cleanup: implement AllFilesInPatch using lo.Keys 2025-07-02 16:19:06 +02:00
patch_line.go refactor patch code 2023-03-19 16:30:39 +11:00
patch_test.go Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
transform.go Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00