git: Handle git pre-commit hooks separately (#43285)

We now run git pre-commit hooks before we commit. This ensures we don't
run into timeout issues with askpass delegate and report invalid error
to the user.

Closes #43157

Release Notes:

- Fixed long running pre-commit hooks causing committing from Zed to
fail.

Co-authored-by: Cole Miller <cole@zed.dev>
d07193cdf2Jakub Konka committed on 11/21/2025, 11:33:32 PM· committed by GitHubparent279b76d
8 files changedLine totals unavailable