Skip to main content

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 / ArgTypeDefaultDescription
<path>textFile to diff (picker over changed files when omitted)
--stagedbooleanfalseDiff the index against HEAD instead of the working tree
--jsonbooleanfalseMachine-readable hunks

See code: commands/git/inspect.ts › diffCommand