Git Status
git_statusCheck git repository status: branch, ahead/behind counts, staged, unstaged, and untracked files. Use to orient before committing or opening a PR.
Instructions
Report the current branch, upstream ahead/behind counts, and staged/unstaged/untracked files.
Use to orient before committing or opening a PR, and to parse a ticket id from a branch named type/<id>-<slug>. Read-only.
Args:
repo_path (string, optional): repository path (default: server cwd)
Returns JSON: { branch, ahead, behind, staged[], unstaged[], untracked[] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Path to the git repository. Defaults to the server's working directory. |