git: Migrate some panel code away from visible_entries (#23251)

To prepare for the introduction of folding in the git panel, these
codepaths need to work with the canonical source of all git status
entries, not just the ones that are visible in the panel.

Release Notes:

- N/A

---------

Co-authored-by: Nate <nate@zed.dev>
1a8303b020Cole Miller committed on 1/16/2025, 9:32:11 PM· committed by GitHubparent1b1c2e5
5 files changedLine totals unavailable