Fix performance of GitPanel::update_visible_entries (#25504)

Co-authored-by: Anthony Eid <hello@anthonyeid.me>

Closes #19022

Release Notes:

- Fixes pessimal performance with the new git panel when a very large
number of files are untracked

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
53a5145dc8Conrad Irwin committed on 2/24/2025, 10:55:44 PM· committed by GitHubparentdef342e
1 file changedLine totals unavailable