mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 08:06:25 -04:00
Prep for extending the focused main view's raw-diff fallback beyond the files panel. ShowCmdObj, ShowFileDiffCmdObj, ShowStashEntryCmdObj and DiffCmdObj gain the ignoreExternalDiff arg WorktreeFileDiffCmdObj already has — forcing git's own coloured diff regardless of a configured external diff command. All callers pass false, so behaviour is unchanged. Also lift the pty-vs-command task choice out of the files controller into types.NewMainViewDiffTask(WithPrefix), so the commit/stash/patch-building panels (whose diffs are built in the diff helper, which can't reach the staging helper) can select the same raw-fallback task. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| direnv | ||
| git_commands | ||
| git_config | ||
| hosting_service | ||
| models | ||
| oscommands | ||
| patch | ||
| testdata | ||
| git.go | ||
| git_cmd_obj_builder.go | ||
| git_cmd_obj_builder_test.go | ||
| git_cmd_obj_runner.go | ||
| git_cmd_obj_runner_test.go | ||