development · Command reference
qzx getGitStatus
What it does
Provides a structured summary of the Git repository state (branch, remote, changes, recent commits)
Canonical command: getGitStatus
Accepted aliases: None
Case-sensitive: no
Included in the published package
Available in PyPI 0.2.2.0.2. This page documents the 0.2.2.0.2 alpha development checkout.
Safety and effects
Read-only under the current classification
No documented dry-run parameter
May invoke native programs
No documented network use
No inherent elevation requirement
This safety classification was reviewed against implementation digest sha256:d1aeee5d73455dd8eb23433175005ff85f028dffce5586e20ff9af06929cd995 on 2026-07-24.
Exact syntax
qzx getGitStatus [repo_path] --jsonParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| repo_path | str | No | "." | Path to the directory to scan (defaults to the current working directory) |
Input examples
qzx getGitStatusShow git status for the current directory
qzx getGitStatus C:/some/pathShow git status for the repository at C:/some/path
For the complete structured payload, add --json: qzx getGitStatus [repo_path] --json
Representative output example
This illustrative JSON is derived from the current implementation-backed result contract. It shows what the command can return without claiming a recorded execution; values vary with inputs, host, permissions, and optional tools.
Example command: qzx getGitStatus --json
{
"success": true,
"message": "Provides a structured summary of the Git repository state (branch, remote, changes, recent commits). In this illustrative example, the command completed successfully.",
"branch": "main",
"changes": {
"staged": "Example value",
"modified": "Example value",
"untracked": "Example value",
"deleted": "Example value",
"renamed": "Example value"
},
"changes_summary": {
"staged_count": 3,
"modified_count": 3,
"untracked_count": 3,
"deleted_count": 3,
"total_changes": 3
},
"is_git_repository": true,
"recent_commits": [
{
"name": "example",
"status": "ok"
}
],
"remotes": [
{
"name": "origin",
"url": "https://github.com/example/project.git"
}
],
"repo_path": "C:\\project\\example.txt",
"sync_status": {
"ahead": "Example value",
"behind": "Example value",
"in_sync": true
},
"tracking_branch": "Example value"
}View the JSON result contract
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"success",
"message"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"branch": [],
"changes": {
"type": "object",
"properties": {
"staged": [],
"modified": [],
"untracked": [],
"deleted": [],
"renamed": []
},
"additionalProperties": true
},
"changes_summary": {
"type": "object",
"properties": {
"staged_count": [],
"modified_count": [],
"untracked_count": [],
"deleted_count": [],
"total_changes": []
},
"additionalProperties": true
},
"error": {
"type": "string"
},
"is_git_repository": {
"type": "boolean"
},
"recent_commits": [],
"remotes": [],
"repo_path": [],
"sync_status": {
"type": "object",
"properties": {
"ahead": [],
"behind": [],
"in_sync": {
"type": "boolean"
}
},
"additionalProperties": true
},
"tracking_branch": []
},
"additionalProperties": true
}Errors and limits
The public contract requires success=false and a descriptive message on failure. This catalog does not yet declare a command-specific error taxonomy; inspect the result and do not invent error codes.
QZX is alpha software. Optional dependencies, permissions, and host capabilities can change the result.
Evidence workflow: requires the supported operating-system matrix.
Evidence and provenance
- Implementation
- src/qzx/commands/development/get_git_status.py
- Documentation channel
- Development documentation 0.2.2.0.2 · main · sha256:319b16857a87636ebc3b89734cc040a737bb56194464fca33ce73bdae2043096
- Availability
- 0.2.2.0.2 or earlier
Keep exploring
Related commands
These commands also belong to the development category. Compare them to choose the operation that best fits your task.
qzx formatCodeFormats source code files by auto-detecting language and invoking the right formatterqzx getProjectTreeGenerates a clean visual directory tree (ASCII and JSON) excluding heavy directories like node_modulesqzx findDeadCodeScans files for declared functions and classes, and identifies those with zero references in other filesqzx projectDoctorInspects project health: detects tech stack, dependencies, environment configuration, Git state, test suites, circular imports, dead code, and large files