jesseduffield.lazygit/pkg/commands
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
..
git_commands Use a better name for the auto-stash for moving a custom patch to index 2025-07-03 16:56:30 +02:00
git_config Enable errorlint linter, and fix warnings 2025-06-30 18:30:11 +02:00
hosting_service Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
models Add IsAnnotated field to models.Tag struct 2025-06-30 16:12:33 +02:00
oscommands Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
patch Render only + and - lines as included in a patch 2025-07-04 10:14:35 +02:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
git.go Use WorkingTreeState instead of RebaseMode in CommitLoader 2025-04-20 15:53:17 +02:00
git_cmd_obj_builder.go Remove ICmdObj interface 2025-05-01 15:21:37 +02:00
git_cmd_obj_runner.go Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00