Fix git commands for staging and unstaging (#23147)

This fixes a bug that prevents unstaging added files.

I've also removed the batching/debouncing logic in the long-running task
that launches the git invocations---I added this originally but I don't
think it's really necessary.

Release Notes:

- N/A
e86fe1d0b9Cole Miller committed on 1/15/2025, 12:49:07 AM· committed by GitHubparentde6216a
2 files changedLine totals unavailable