rt git diff
rt › git › diff
One file's diff (hunks and lines) from git-core
Usage
rt git diff <path> [flags]
Arguments & flags
| Flag / Arg | Type | Default | Description |
|---|---|---|---|
<path> | text | File to diff (picker over changed files when omitted) | |
--staged | boolean | false | Diff the index against HEAD instead of the working tree |
--json | boolean | false | Machine-readable hunks |
See code: commands/git/inspect.ts › diffCommand