gitscan

Crates.iogitscan
lib.rsgitscan
version0.1.0
created_at2025-12-22 22:17:29.767797+00
updated_at2025-12-22 22:17:29.767797+00
descriptionMap files to commits in a git repository
homepage
repositoryhttps://github.com/kamoshi/gitscan
max_upload_size
id2000376
size38,687
Maciej Jur (kamoshi)

documentation

README

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.

Example

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),
}

License

GPL v2.0 or later.

Commit count: 0

cargo fmt