Skip to content

feature: add default mixed commit search with SHA-prefix matching - #2818

Open
tib8 wants to merge 1 commit into
sourcegit-scm:developfrom
tib8:mixed-commit-search
Open

tib8 wants to merge 1 commit into
sourcegit-scm:developfrom
tib8:mixed-commit-search

Conversation

@tib8

@tib8 tib8 commented Oct 26, 2026

Copy link
Copy Markdown

Add a default Mixed search mode so a single query can find commits by SHA prefix, author name/email, or full commit message. Match SHA prefixes and literal author/message substrings case-insensitively; retain the existing dedicated search modes.

Apply the 1,000-result limit after matching, so older matching commits remain searchable. Support current-branch and all-branches scopes, detached HEAD, multiline messages, Unicode, and cancellation.

Related work: #2543 also proposes broader commit search. This implementation uses SHA-prefix matching and literal author/full-message matching, with Mixed as the default mode.

Validation:

  • dotnet format --verify-no-changes src/SourceGit.csproj
  • dotnet run --project tests/MixedSearchChecks/MixedSearchChecks.csproj — 29 checks passed.

Based on upstream develop.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant