Files
git-diff-explainer-cli/README.md
7000pctAUTO 44ca0c1215
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
fix: correct CI workflow configuration for git-diff-explainer-cli
2026-02-02 14:07:57 +00:00

981 B

git-diff-explainer-cli

A CLI tool that uses LLMs to explain git diffs in natural language.

Features

  • Explain git diffs using AI (OpenAI, Anthropic, or local LLMs)
  • Support for multiple diff formats (unified, side-by-side, stats)
  • Configurable explanation depth (brief, detailed, comprehensive)
  • Interactive mode for follow-up questions
  • Batch processing of multiple files

Installation

pip install git-diff-explainer-cli

Usage

Basic Usage

gdiffer explain

Options

--format TEXT    Output format (text, json, markdown) [default: text]
--depth TEXT     Explanation depth (brief, detailed, comprehensive) [default: detailed]
--model TEXT     LLM model to use (gpt-4, claude-3-opus, etc.)
--interactive    Enable interactive mode
--batch          Batch process multiple files

Configuration

Set your API key:

export OPENAI_API_KEY="your-key"
# or
export ANTHROPIC_API_KEY="your-key"

License

MIT