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

# stg-files(1)

Show the files modified by a patch (or the current patch)

## NAME

stg-files - Show the files modified by a patch (or the current patch)

## SYNOPSIS

```
stg files [options] [--] [[<branch>:]<patch>]
```

## DESCRIPTION

List the files modified by the given patch (defaulting to the current one). Passing the *--stat* option shows the diff statistics for the given patch. Note that this command doesn’t show the files modified in the working tree and not yet included in the patch by a *refresh* command. Use the *diff* or *status* commands for these files.

## OPTIONS

- \-s, --stat

  Show the diffstat.

- \--bare

  Bare file names (useful for scripting).

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

  Extra options to pass to "git diff".

## STGIT

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