Git status
git_statusRetrieve the git status of a workspace, showing the current branch and changed files, or a clean tree message, without using a shell.
Instructions
Read-only git status of the workspace: runs 'git status --porcelain=v1 -b' without a shell (LC_ALL=C, 10 s timeout) and returns a 'branch: ...' header followed by the porcelain lines exactly as git prints them. A clean tree reports 'working tree clean'. A directory that is not a git repository or a missing git binary is reported as a clear error. No --shell flag is needed for this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Workspace name (see workspace_list). Defaults to the primary workspace. |