Fix some syncing issues with git statuses (#25535)

Like the real app, this one infinite loops if you have a diff in an
UnsharedFile.

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
08539b32d0Conrad Irwin committed on 2/26/2025, 5:09:02 AM· committed by GitHubparent88baf17
11 files changedLine totals unavailable