mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -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> |
||
|---|---|---|
| .. | ||
| common.go | ||
| common_commands.go | ||
| context.go | ||
| diff_line_info.go | ||
| keybindings.go | ||
| modes.go | ||
| ref_range.go | ||
| refresh.go | ||
| rendering.go | ||
| search_state.go | ||
| suggestion.go | ||
| version_number.go | ||
| version_number_test.go | ||
| views.go | ||