InteractiveCommandChange inspectionChange inspection

/diff [SCOPE] [REF]

Diff/code/commands/interactive/diff

Inspect code changes as a diff.

Options
4
Arguments
2
Examples
2
Industry
3 of 5 mapped

About

SCOPE = working|staged|branch|commit; default working. Options: --base REF; repeatable --file PATH; --stat; --untracked.

Syntax

The canonical syntax string as recorded in the catalogue. It is authoritative — it is never reconstructed from the option and argument lists below.

/diff [SCOPE] [REF]

Arguments

  • scopeenumOptionalposition 1

    Select which change scope to display: working tree, staged changes, branch comparison, or a commit.

    Allowedworking, staged, branch, commitDefaultworking
  • refstringOptionalposition 2

    Git or version reference.

Options

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>stringOptional

    Choose the base Git reference used for comparison or creation.

  • --file <path>pathOptional

    Limit a diff or inspection operation to the specified file; repeatable where supported. This option may be repeated.

    Repeatableyes
  • --statbooleanOptional

    Show change statistics in addition to or instead of full diff detail. Default: False.

    Defaultfalse
  • --untrackedbooleanOptional

    Include untracked files in the diff. Default: False.

    Defaultfalse

Examples

  • With 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.

Availability & requirements

Nothing recorded — this command is offered in the default session, with no repository, authentication, capability or platform requirement attached to it.

Relationships

Aliases

None recordedNo alias resolves to this command

Alternate surfaces

Not applicableThis command exists on one surface only

Related commands

Industry comparison

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

Open in Compare →