| Crates.io | gitscan |
| lib.rs | gitscan |
| version | 0.1.0 |
| created_at | 2025-12-22 22:17:29.767797+00 |
| updated_at | 2025-12-22 22:17:29.767797+00 |
| description | Map files to commits in a git repository |
| homepage | |
| repository | https://github.com/kamoshi/gitscan |
| max_upload_size | |
| id | 2000376 |
| size | 38,687 |
High-performance, streaming Git commit history parser for Rust.
Adapted from the Go implementation https://github.com/bep/gitmap and refactored for Rust. Copyright 2024 Bjørn Erik Pedersen bjorn.erik.pedersen@gmail.com.
use gitscan::{Options, map};
let opts = Options::new("main");
match map(opts) {
Ok(repo) => {
println!("Repository root: {:?}", repo.top_level_path);
for (path, history) in repo.files {
println!("File: {:?}, Last modified by: {}", path, history[0].author_name);
}
}
Err(e) => eprintln!("Error: {}", e),
}
GPL v2.0 or later.