mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
When staging, discarding or taking lines out of a custom patch spans several files, we read the diff of a file and apply its patch before we look at the next file. The next commits report an error if the selected lines of a file can't be found. Without this change, the files before it would already be acted on by then. So find the lines in every file first, and only then apply anything. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>