Show config git status
git_git_statusInspect the Home Assistant /config git repository to view the active branch, staged, modified, and untracked files, and check if the working tree is dirty before committing changes.
Instructions
Show git status of the HA config directory.
Calls _repo() for the /config git repo and returns the active branch,
staged/modified/untracked file lists (repo.index.diff,
repo.untracked_files) and an overall dirty flag.
Use when: checking what changed in /config before committing or
writing a file.
Returns: dict {"branch", "staged", "modified", "untracked", "is_dirty"}.
Errors: raises RuntimeError (from _repo()) when gitpython is not
installed or no git repo exists yet at HA_CONFIG_PATH — run
git_git_init_config first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||