git: Avoid calling `git help -a` on every commit (#44586)

Updates #43993 

Release Notes:

- N/A
37077a8ebbCole Miller committed on 12/11/2025, 1:03:35 AM· committed by GitHubparent7c4a85f
1 file changedLine totals unavailable