zed/crates/git/src
Trong Nguyen 356e396517
git_ui: Search commits by hash (#59132)
## Summary

- Allows Git Graph search to match abbreviated or full commit hashes
when the query looks like a SHA.
- Keeps the existing message search behavior for non-hash queries.
- Mirrors the hash search heuristic in the fake git backend and adds
GPUI coverage for hash and message search.

<img width="1912" height="1241" alt="image"
src="https://github.com/user-attachments/assets/903b438e-baa8-4447-95dc-faf321bca6a5"
/>


## Test Plan

- `cargo fmt --check --package git_ui`
- `cargo -q test -p git_ui
test_git_graph_search_matches_commit_hash_prefix -- --nocapture`
- `./script/clippy -p git_ui`

## Suggested .rules additions

- N/A

Release Notes:

- Improved Git Graph search to find commits by abbreviated or full hash.
2026-06-22 00:37:28 +00:00
..
blame.rs Stream git blame parsing (#58733) 2026-06-06 18:36:07 +00:00
checkpoint.gitignore agent: Don't track large and common binary files (#31352) 2025-05-26 11:31:25 +00:00
commit.rs git: Log some more information when opening a git repository and when git show fails (#51495) 2026-03-13 14:53:14 +00:00
git.rs git: Avoid unnecessary git repo rescans when unrelated git files change (#59318) 2026-06-16 14:13:38 +00:00
hosting_provider.rs git: Use CDN endpoint for GitHub avatars to avoid rate limiting (#47894) 2026-01-31 13:49:42 -05:00
remote.rs git: Detect SCP remotes with non-standard SSH usernames (#59457) 2026-06-18 12:52:51 +00:00
repository.rs git_ui: Search commits by hash (#59132) 2026-06-22 00:37:28 +00:00
stash.rs git: Add git stash picker (#35927) 2025-09-12 14:45:38 -04:00
status.rs git: Degrade gracefully when refreshing git state (#57292) 2026-05-25 16:15:12 +00:00