git: Move all state into the panel (#23185)

This should fix the problem with the panel not updating when switching
projects.

Release Notes:

- N/A
e265e69429Cole Miller committed on 1/15/2025, 7:41:21 PM· committed by GitHubparentd578f5a
2 files changedLine totals unavailable