git_ui: Ensure discarding tracked changes respects staging state (#61608)

Closes #56020

Release Notes:

- Fixed Discard Tracked Changes discarding unstaged files

---------

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
11a8837badTai Nguyen committed on 7/27/2026, 12:42:54 PM· committed by GitHubparent28f47fa
1 file changedLine totals unavailable