Don't show branch and worktree title bar buttons if Git is disabled (#54667)

Closes https://github.com/zed-industries/zed/issues/54628

Release Notes:

- Fixed a bug where the worktree and branch buttons in the title bar
were still being displayed despite `disable_git` being turned on.
ad2939f2e0Danilo Leal committed on 4/23/2026, 3:33:34 PM· committed by GitHubparent3a41073
1 file changedLine totals unavailable