Skip to main content

Reference

Every command, flag, exit code, and file gitq reads or writes.

๐Ÿ“„๏ธJSON output

Every command accepts --json (see Global flags) and prints one JSON document to stdout instead of its human summary, through a single shared function, emit() (src/cli/output.ts:4-7). The shapes on this page come from the actual value each command passes to emit(), read at the source, not from a written schema. Examples marked "Real capture" are actual output against a scratch repo, trimmed where the output is long. Sections with no example give the shape from its source type.