Every read of history is answered by the forge, from its index of the repository, so it is as fast on a workspace holding three files as on one holding all of them. Everything you are shown is what you may read: a commit in a folder you may not read shows that it exists, but not its author, description or files.
A history to explore
Start a server and land two changes to one file, the second in two edits:
$ af-server --dev
...$ source ~/af-dev/dev/env
$ af workspace add ~/demo
Workspace at /home/you/demo
Paths: **
main has no landing yet
$ cd ~/demo
$ af new -m "Add a greeting"
Working on change ssxkkxoqvozrrtrkknplqrrzvyxqqmvw at commit b9b48510a88583a0f2a50876a6cf654985d5e22c5a676f024c9ae6a56d03f39b
$ printf 'Hello\nWelcome\n' > greeting.txt
$ echo "notes" > notes.txt
$ af submit
Submitted commit 1e10af1c9a802410330bf677e8b38365b28a962f12ca8a1cc8a5dc80cae946da, 2 edits in its last snapshot$ af status
Change ssxkkxoqvozrrtrkknplqrrzvyxqqmvw (landed) at commit 1e10af1c9a802410330bf677e8b38365b28a962f12ca8a1cc8a5dc80cae946da$ af new -m "Say goodbye too"
Working on change sovwronvtomuzxmpvsopnkxrpzlztxok at commit 364ce5ac6954aaac5ca31a40a8655ad6f588022b830f0966f6fb1999e4b740bc
$ printf 'Hello\nWelcome\nGoodbye\n' > greeting.txt
$ af status
Change sovwronvtomuzxmpvsopnkxrpzlztxok (open) at commit 5c08092f8d8cacd243b003b074ecc5450a31d0a732b88b332629944613b80f44
Based on landing 1
Landing waits for: scan
$ printf 'Hello\nWelcome back\nGoodbye\n' > greeting.txt
$ af submit
Submitted commit c0ed31a58ad588c2a1c46a3aa0c246fa6ccde9ae573ad9dede9e64cf3c37319f, 1 edit in its last snapshot$ af status
Change sovwronvtomuzxmpvsopnkxrpzlztxok (landed) at commit c0ed31a58ad588c2a1c46a3aa0c246fa6ccde9ae573ad9dede9e64cf3c37319f
Based on landing 1Select commits
af log takes jj’s revset language. ::main is main’s history; files() keeps the commits that change a path:
$ af log -r 'files(notes.txt)'
○ ssxkkxoq dev@localhost 2026-11-24T13:50:00Z 1e10af1c
│ Add a greeting
~@ is the commit your workspace is at, and @- its parent:
$ af log -r '@-'
○ ssxkkxoq dev@localhost 2026-11-24T13:50:00Z 1e10af1c
│ Add a greeting
~See what a commit changed
af show prints a commit’s description, its author and parents, and the paths it changed, marked Added, Modified or Deleted:
$ af show -r @
Commit ID: c0ed31a58ad588c2a1c46a3aa0c246fa6ccde9ae573ad9dede9e64cf3c37319f
Author : Developer <dev@localhost> (2026-11-24T13:50:01Z)
Parents : 1e10af1c9a802410330bf677e8b38365b28a962f12ca8a1cc8a5dc80cae946da
Say goodbye too
M greeting.txtFind the change behind each line
af file annotate names, for each line, the change that last wrote it:
$ af file annotate greeting.txt
ssxkkxoq dev 2026-11-24 13:50:00 1: Hello
sovwronv dev 2026-11-24 13:50:03 2: Welcome back
sovwronv dev 2026-11-24 13:50:03 3: GoodbyeFollow a change through its edits
A change keeps its ID through every edit, and af evolog lists each version of it, newest first, with the operation that made it. Here are the change’s start and the two snapshots of its edits:
$ af evolog -r @
c0ed31a58ad588c2a1c46a3aa0c246fa6ccde9ae573ad9dede9e64cf3c37319f sovwronvtomuzxmpvsopnkxrpzlztxok dev@localhost 2026-11-24T13:50:03Z
Say goodbye too
-- operation 9124ede4755e from 5c08092f8d8cacd243b003b074ecc5450a31d0a732b88b332629944613b80f44
5c08092f8d8cacd243b003b074ecc5450a31d0a732b88b332629944613b80f44 sovwronvtomuzxmpvsopnkxrpzlztxok dev@localhost 2026-11-24T13:50:02Z
Say goodbye too
-- operation dcb746ce306c from 364ce5ac6954aaac5ca31a40a8655ad6f588022b830f0966f6fb1999e4b740bc
364ce5ac6954aaac5ca31a40a8655ad6f588022b830f0966f6fb1999e4b740bc sovwronvtomuzxmpvsopnkxrpzlztxok dev@localhost 2026-11-24T13:50:01Z
Say goodbye too
-- operation 65a3bf102206Next
- Changes and landings: why a change keeps its ID.
af log,af show,af fileandaf evologin the reference.- jj’s revset language, which
-rtakes.