Crate hindsight_git

Crate hindsight_git 

Source
Expand description

hindsight-git: Git log processing for hindsight-mcp

This library crate provides functionality to parse and process git logs for consumption by the hindsight-mcp server.

§Example

use hindsight_git::{GitRepo, WalkOptions};

let repo = GitRepo::open(".").expect("open repo");
let commits = repo.walk_commits(&WalkOptions::latest(10).with_diff())
    .expect("walk commits");

for c in commits {
    println!("{} - {}", c.commit.short_sha(), c.commit.subject());
}

Re-exports§

pub use commit::Commit;
pub use error::GitError;
pub use parser::CommitWithDiff;
pub use parser::DiffSummary;
pub use parser::FileDiff;
pub use parser::GitRepo;
pub use parser::WalkOptions;

Modules§

commit
Git commit types and operations
error
Error types for hindsight-git
parser
Git log parsing utilities
prelude
Re-export commonly used types