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

# annotate

> Show line-by-line commit attribution for a file

The `annotate` command shows who last modified each line of a file, along with the commit ID and date. `dv blame` is an alias for this command.

```bash theme={null}
dv annotate <path> [-L <start,end>]
```

`<path>` is the file to show annotation information for.

`[-L <start,end>]` limits the output to a specific line range. For example, `-L 10,20` shows only lines 10 through 20.

For each line, the output includes:

* **Commit ID** - the commit that last changed the line
* **Author** - who made the change
* **Date** - when the change was made
* **Line number and content** - the current line text

For example, to see who last modified each line in a file:

```bash theme={null}
dv annotate src/main.py
```

To see annotation for a specific range of lines:

```bash theme={null}
dv annotate src/main.py -L 10,20
```
