Command reference
oko diff
What changed between two revisions, per file and hunk, read from `git diff BASE..BRANCH`.
Invocation#
oko diff BASE BRANCH [--in DIR] [--json]Inputs and options#
- BASE and BRANCH, any two git revisions; --in names the repository, the current directory when omitted.
Output and state effect#
- Prints `# <n> file(s) changed in BASE..BRANCH` and one line per file with lines added, removed and hunk count; --json prints the files with their hunks.
Refusals and safe exits#
- `oko diff BASE requires <id>` when BRANCH is missing (exit 2); `git diff <range> in <directory> could not start: <error>`; `git diff <range> in <directory> exited <status>: <stderr>`.