| Crates.io | git-semantic |
| lib.rs | git-semantic |
| version | 1.1.0 |
| created_at | 2025-10-17 06:06:43.322822+00 |
| updated_at | 2025-11-17 07:01:52.938654+00 |
| description | Semantic search for git history using natural language |
| homepage | https://github.com/yanxue06/git-semantic-search |
| repository | https://github.com/yanxue06/git-semantic-search |
| max_upload_size | |
| id | 1887209 |
| size | 127,045 |
Search your git history using natural language - find commits by what they mean, not just what they say.
$ git-semantic search "fixed race condition in authentication"
🎯 Most Relevant Commits:
1. abc1234 - Resolve concurrent login session handling (0.89 similarity)
Author: Alice Chen, 6 months ago
2. def5678 - Synchronize user token refresh logic (0.84 similarity)
Author: Bob Martinez, 4 months ago
Stop scrolling through hundreds of commits with git log --grep. Just describe what you're looking for in plain English.
Traditional git search is keyword-based. You need to guess the exact words the author used:
git log --grep="race" # 847 results 😵
git log -S "mutex" # Maybe? 🤷
git-semantic understands meaning. Search for "race condition" and find commits about "concurrent access" or "synchronization bugs" - even if those exact words aren't in the message.
cargo install git-semantic
Alternatively, you can also install from the latest release compatible with your OS on the releases page.
# 1. One-time setup (downloads AI model, ~130MB)
git-semantic init
# 2. Index your repository
cd /path/to/your/repo
git-semantic index
# 3. Search!
git-semantic search "your query here"
git-semantic search "fix memory leak"
git-semantic search "add authentication feature"
git-semantic search "refactor payment logic"
# By author
git-semantic search "refactor" --author=alice
# By date
git-semantic search "bug fix" --after=2024-01-01
# By file
git-semantic search "optimization" --file=src/auth.rs
# Manually decide number of matches with the -n flag
git-semantic search "feature" -n 5
# Update index with new commits
git-semantic update
# Show index statistics
git-semantic stats
# Quick index (messages only, faster)
git-semantic index --quick
# Full index (messages + diffs, more context)
git-semantic index --full
.git/semantic-index (ignored by git)Stored locations:
~/Library/Application Support/com.git-semantic.git-semantic/models/ (macOS).git/semantic-index (per repository)$ git-semantic search "ONNX integration"
🎯 Most Relevant Commits for: "ONNX integration"
1. 4d8acb9 - docs: Update README with complete ONNX integration details (0.73 similarity)
Author: yan, 2025-10-13 08:17:23 UTC
-# git-semantic (IN DEVELOPMENT)
+# git-semantic
2. 776ff32 - feat: Complete ONNX integration with real BGE embeddings (0.73 similarity)
Author: yan, 2025-10-13 07:24:37 UTC
- let engine = SearchEngine::new(model_manager)?;
+ let mut engine = SearchEngine::new(model_manager)?;
3. 28e9c31 - Implement ONNX model inference and HuggingFace download (0.69 similarity)
Author: yan, 2025-10-13 06:50:59 UTC
+use indicatif::{ProgressBar, ProgressStyle};
+use ndarray::Array1;
Contributions welcome! Please use Conventional Commits format:
feat: add new search feature
fix: resolve memory leak in indexing
docs: update installation instructions
MIT
Built with: Rust 🦀 and ❤️