jesseduffield.lazygit/pkg/integration/tests/diff
Stefan Haller 8731d8a51b Rework the custom pager config (rename to diff renderer)
For a long time lazygit has used the term "custom pager" to refer to
what's really a "diff renderer". A pager is a program that allows you to
view output page by page (hence the name), e.g. less; lazygit's custom
diff renderers are not pagers. It used the term only because the feature
is implemented using git's GIT_PAGER env var, but that's an
implementation detail.

Rename the 'git.pagers' config to 'git.diffRenderers', and restructure
its elements while we're at it to make things clearer:

- Add a 'type' field to explicitly specify which type of diff renderer
  it is (the two fundamentally different ones are 'stdinFilter' and
  'extDiff').
- Add a third type, 'rawGit', which has an 'args' field that makes it
  easy to use 'git --color-words' as a custom renderer
- Unify the old 'pager' and 'externalDiffCommand' fields to a single
  'command' field for both types

Existing config files are migrated automatically.
2026-07-31 08:42:51 +02:00
..
copy_to_clipboard.go Fix copying a file's absolute path when running in a linked worktree 2026-04-19 11:16:02 +02:00
cycle_diff_renderers.go Rework the custom pager config (rename to diff renderer) 2026-07-31 08:42:51 +02:00
diff.go Add --stat -p to diff args in diffing mode 2024-08-28 18:27:52 +02:00
diff_and_apply_patch.go Add --stat -p to diff args in diffing mode 2024-08-28 18:27:52 +02:00
diff_commits.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
diff_non_sticky_range.go Add a simple integration test for non-sticky range diff 2024-08-28 19:51:15 +02:00
ignore_whitespace.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
rename_similarity_threshold_change.go Allow changing diff context size and rename threshold when main view is focused 2025-04-23 08:38:46 +02:00