mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
Rendering a diff through a renderer on Windows means running the renderer ourselves, since ConPTY mangles the metadata records it emits and git only invokes a renderer of its own when it talks to a terminal. That needs a chain of commands whose output a view can be filled from while it runs, where PipeCommands runs a chain to completion and reports what it said afterwards. StartPipeline starts such a chain and hands back the reader for its output, along with a handle offering exactly what a render task asks of a command: something to wait for, something to name it by, and a way to stop it. Every command's stderr joins the output, so a renderer that objects to its input says so where the diff would have been. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>