---
title: 'repo diff'
weight: 260
generated: true
description: 'Show changes vs a version'
---

<!-- Generated by scripts/gen-cli-docs.sh from the libfossil --help output. Do not edit; change the help text in cli/ and run make docs-gen. -->

```text
Usage: libfossil repo diff [<version> [<to> [<path>]]] [flags]

Show changes vs a version

Arguments:
  [<version>]    Version to diff against (default: tip)
  [<to>]         Second version: diff Version against it instead of the working
                 directory
  [<path>]       With two versions, only this file (default: every changed file)

Flags:
  -h, --help           Show context-sensitive help.
  -R, --repo=STRING    Path to repository file
  -v, --verbose        Verbose output

      --json           With two versions, print a JSON array of {name, unified}
                       instead of text
  -d, --dir="."        Working directory to compare
  -U, --unified=3      Lines of context
```
