Refactor more code around commit button text (#25990)

Missed this when doing https://github.com/zed-industries/zed/pull/25988

Release Notes:

- N/A
ffe2bed1e2Joseph T. Lyons committed on 3/4/2025, 3:33:38 AM· committed by GitHubparent8894073
2 files changedLine totals unavailable