git_info
Retrieve git repository context, working tree status, and recent changes in a single read-only operation to understand the full picture before making modifications.
Instructions
Retrieve git repository context, working tree status, or recent changes.
Consolidated tool replacing the previous get_git_context, get_git_status,
and get_recent_changes tools. Use info_type to select what subset to return.
"all" returns branch, remote, recent commits, working tree status, and staged/ modified/untracked file lists in a single response. Use this when you need the full picture before making changes.
Side effects: Read-only operation; queries git repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max commits to return (default 100). Work summaries report ``truncated=true`` when more commits exist in the time window. | |
| since | No | Optional inclusive ISO timestamp for "work_summary". | |
| until | No | Optional exclusive ISO timestamp for "work_summary". | |
| info_type | No | What git information to return: - "all": branch, remote, commits, and working tree status (default) - "context": branch name, remote URL, list of recent commits - "status": working tree status with staged/modified/untracked files - "changes": recent commits from the current branch - "work_summary": date-filtered commit/file/line summary across all branches | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||