---
title: "af interdiff"
description: "Compare the edits of two commits"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af interdiff

<!-- Generated by tools/gen-reference.mjs from `af interdiff --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

Lists the paths where the edits of --from, rebased onto the parents of --to, differ from the edits of --to. Use it to see what changed between two versions of a change.

## Usage

```text
af interdiff [OPTIONS] [PATHS]...
```

## Arguments

- `[PATHS]...`

  Glob patterns, from the repository root, limiting the paths shown

  For example, `docs/**` matches everything under `docs`, while `docs` matches only a file named `docs`.

## Options

- `--from <FROM>`

  Revset selecting the commit to compare from; defaults to the workspace's change

- `--to <TO>`

  Revset selecting the commit to compare to; defaults to the workspace's change

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af interdiff
af interdiff src/parser.rs
```

Source: https://docs.forge.workreef.dev/reference/af/interdiff/index.mdx
