mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-05 21:46:49 -04:00
parseAheadBehindForEachRefOutput dropped fields it couldn't parse, which left the remaining ones of that line pointing at the wrong bases. The caller that picks the closest base doesn't care, but sorting refs by ancestry has to know which base a pair of numbers belongs to. Return an entry per base and mark the ones that were malformed, as the function's comment has claimed all along. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>