Git Tools¶
Available Tools¶
status¶
Show working tree status: staged, unstaged, and untracked files. Use before writing commit messages or scoping a review.
changes¶
One compact table of everything that differs from a base (staged, unstaged, untracked): status letter, +added -removed lines, path. Start here to scope a review.
diff¶
Show file diffs. Defaults to the unstaged working-tree diff. Use staged:true for the index or base to compare the working tree with a ref. Output is truncated; use mode stat or files to narrow.
log¶
Show recent commits, one line each: short hash, date, subject. Defaults to the last 10 commits.
file_at¶
Show a file's content at a ref (branch, tag, or hash). Optional startLine and endLine print numbered lines. Output is truncated.
branch¶
Show the current branch name and list all local branches.
show¶
Show metadata and diff for a commit hash. Use after log. Use stat or files to keep it small. Output is truncated.