git: Fix the panel's update debouncing (#23462)

This PR replaces the update debouncing code in the git panel with a more
correct and conventional structure (holding a `Task` field instead of
spawning a task that runs a loop). I wrote the code that this replaces
without realizing that it doesn't implement debouncing properly.

Release Notes:

- N/A
a811979894Cole Miller committed on 1/22/2025, 7:33:17 PM· committed by GitHubparent514d9b4
1 file changedLine totals unavailable