> ## 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.

# log

> Get the latest commits

You use the log command to get the list of commits in your repository.

```bash theme={null}
dv log [path] [-n <num_results>] [--oneline] [--since <date>] [--until <date>] [--date <format>]
```

`[path]` filters commits to only those affecting a specific file or directory.

`[-n <num_results>]` limits the number of commits shown (default 20, max 1000).

`[--oneline]` shows each commit on a single line.

`[--since <date>]` shows commits after a date (ISO format or relative like `1 week ago`).

`[--until <date>]` shows commits before a date.

`[--date <format>]` sets the output date format. Use `iso` for ISO 8601 UTC.

An example of fetching the last ten commits:

```bash theme={null}
dv log -n 10
```

To see commits affecting a specific file:

```bash theme={null}
dv log path/to/file.uasset
```

To see recent commits in compact format:

```bash theme={null}
dv log --oneline --since "2 weeks ago"
```
