mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 16:16:28 -04:00
git now emits the diff line metadata records itself, for the word-diff formats -- the ones whose output can't be read back from its own text, which is the same reason we need records out of delta and difftastic. So a rawGit renderer configured with --color-words is no longer a diff we have to give up on: it names every row it shows, as a patched pager does. Two things stood in the way. The probe only knew how to ask a stdin filter or an external diff driver and reported false for anything else, so git's own records were never looked for; and the focused main view treated a rawGit renderer with arguments as unresolvable by definition, re-rendering it raw whatever the probe said. So probe git the way we will run it, with the renderer's own arguments, and look for an actual record rather than the handshake the other probes settle for. git annotates only some of its formats, so an installed git that doesn't speak the protocol and arguments that select no word diff both leave us without records, and looking for a record answers both at once. Arguments that aren't a word diff (-U10, --stat) therefore keep rendering raw when focused, as they did before. Co-Authored-By: Claude Opus 5 (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 | ||