Diff/code/commands/interactive/diff
Inspect code changes as a diff.
SCOPE = working|staged|branch|commit; default working. Options: --base REF; repeatable --file PATH; --stat; --untracked.
The canonical syntax string as recorded in the catalogue. It is authoritative — it is never reconstructed from the option and argument lists below.
scopeenumOptionalposition 1Select which change scope to display: working tree, staged changes, branch comparison, or a commit.
working, staged, branch, commitDefaultworkingrefstringOptionalposition 2Git or version reference.
Defaults, allowed values, conflicts and scope come from the catalogue; blank fields mean the catalogue records nothing, not that the constraint is absent.
--base <string>stringOptionalChoose the base Git reference used for comparison or creation.
--file <path>pathOptionalLimit a diff or inspection operation to the specified file; repeatable where supported. This option may be repeated.
yes--statbooleanOptionalShow change statistics in addition to or instead of full diff detail. Default: False.
false--untrackedbooleanOptionalInclude untracked files in the diff. Default: False.
falseWith options
WITH OPTIONS/diff branch --base main --stat
SCOPE = working|staged|branch|commit; default working. Options: --base REF; repeatable --file PATH; --stat; --untracked.
Representative options
WITH OPTIONS/diff branch --base main --stat --file src/pricing.ts
Shows representative optional controls available for this command.
Nothing recorded — this command is offered in the default session, with no repository, authentication, capability or platform requirement attached to it.
3 of 5 products mapped
Command-level mappings against 5 audited products, each with its documentation source and capture date. No documented equivalent means the audit found nothing in that product’s official documentation — it is not a claim that the product lacks the capability.
Every canonical command was reviewed against all 5 products in one pass captured 2026-09-18. A product with no mapping is a reviewed finding of no documented equivalent, not an unreviewed pair.
Captured 2026-09-18 · 238 commands × 5 products
/diff/diff/diff