---
name: "stg-diff"
section: "1"
platform: "linux"
package: "stgit"
version: "0.18-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/stg-diff"
---

# stg-diff(1)

Show the tree diff

## NAME

stg-diff - Show the tree diff

## SYNOPSIS

```
stg diff [options] [--] [<files or dirs>]
```

## DESCRIPTION

Show the diff (default) or diffstat between the current working copy or a tree-ish object and another tree-ish object (defaulting to HEAD). File names can also be given to restrict the diff output. The tree-ish object has the format accepted by the [**stg-id**(1)](/stg-id/1.md) command.

## OPTIONS

- \-r rev1\[..\[rev2\]\], --range rev1\[..\[rev2\]\]

  Show the diff between revisions.

- \-s, --stat

  Show the stat instead of the diff.

- \-O OPTIONS, --diff-opts OPTIONS

  Extra options to pass to "git diff".

## STGIT

Part of the StGit suite - see [**stg**(1)](/stg/1.md)
