git-summary

v0.1.2
io.github.yifanyifan897645/git-summary Checked 1 day ago Published 8 months ago

Git repo intelligence: summaries, blame, changelogs, branch health, and history search

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

git_summary

Get a structured overview of a Git repository: current branch, recent commits, contributors, and repo stats. Works on any local Git repo.

ParameterTypeDescription
commit_countnumberNumber of recent commits to include (default 20)
repo_pathstringPath to the Git repository (defaults to current working directory)

git_changes

Get a summary of changes in a commit range: what files changed, who changed them, and a diff stat. Useful for understanding what happened between two points in history.

ParameterTypeDescription
max_commitsnumberMax commits to analyze (default 30)
rangestringGit commit range, e.g. 'main..feature' or 'HEAD~5..HEAD' or a tag range
repo_pathstringPath to the Git repository (defaults to cwd)

git_blame

Analyze who wrote each line of a file, when, and in which commit. Get top contributors and ownership breakdown. Optionally limit to a line range.

ParameterTypeDescription
file *stringFile path relative to repo root
end_linenumberEnd line number (optional, for partial blame)
repo_pathstringPath to the Git repository (defaults to cwd)
start_linenumberStart line number (optional, for partial blame)

git_changelog

Auto-generate a changelog from Git commits. Groups commits by type (feat, fix, docs, etc.) using conventional commit format. Specify a range or get the full log.

ParameterTypeDescription
fromstringStart commit/tag (e.g. 'v1.0.0')
repo_pathstringPath to the Git repository (defaults to cwd)
tostringEnd commit/tag (e.g. 'v2.0.0')

git_branch_health

Analyze all local branches: find stale branches, merged branches ready for cleanup, and branches that are ahead/behind. Helps keep your repo tidy.

ParameterTypeDescription
repo_pathstringPath to the Git repository (defaults to cwd)