Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Usage Guide

gitinspector-rs is designed to be both simple for quick checks and powerful for deep repository audits.

Installation

Ensure you have the latest binary in your PATH. You can build it from source using:

cargo build --release

Basic Command

Run the tool against any local git repository path:

gitinspector-rs /path/to/repo

Diagnostic Phases

The tool executes analysis in three distinct phases:

  1. 🔍 Analysis: Parses commit history, computes author contributions, and generates activity trends.

  2. 🏥 Health Audit: Scans for repository maintenance debt, including stale branches and oversized files.

  3. 🚚 Blame Analysis: Performs multi-threaded git blame across the codebase to determine line-level ownership.

Command Options

Formatting & Output

Filtering

Detailed Metrics

Professional Examples

1. Generating a Stakeholder Dashboard

Create a comprehensive HTML report for a project review:

gitinspector-rs . --grading -F html > stats-report.html

2. Auditing Large Codebases (Text)

Focus only on core source files and exclude test data:

gitinspector-rs . -f rs,c,cpp -x "file:tests/" --responsibilities

3. CI/CD Integration (JSON)

Extract metrics for automated tracking:

gitinspector-rs . -F json > repo-metrics.json