Files
zed/crates/git_ui/src
Sha1rholder 0d1756eb10 git_ui: Normalize git branch name when renaming (#65734)
## Summary

Normalize git branch name in action `git::RenameBranch` to make its
behavior similar to action `git::Branch`.

### Before

<img width="1237" height="169" alt="image"
src="https://github.com/user-attachments/assets/dedc1e6a-5573-4202-b7f3-e6c4744fb000"
/>

<img width="768" height="481" alt="image"
src="https://github.com/user-attachments/assets/a937709f-4947-44c4-9c54-d53841347ccc"
/>

### After

<img width="1255" height="241" alt="image"
src="https://github.com/user-attachments/assets/9501ba89-f8b1-4b49-b622-cc5f88703f8b"
/>

## Testing

Tested in Linux Wayland.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

Release Notes:

- Normalize branch name in action: `git::RenameBranch`.

---------

Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
2026-11-10 21:59:40 +00:00
..
…