{% if staged_only -%}
Analyze the staged git changes and group them into atomic commits.
Use `git diff --cached` and `git diff --cached --stat` to inspect what's staged.
{%- else -%}
Analyze all git changes (staged, unstaged, and untracked) and group them into atomic commits.
Use `git diff HEAD`, `git diff --cached`, `git diff`, `git status --porcelain`, and `git ls-files --others --exclude-standard` to inspect changes.
{%- endif %}
The git repository root is: {{ git_root }}
{% if message %}
Additional context from the user:
{{ message }}
{% endif -%}