1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-16 16:55:24 +02:00
tldr/pages/common/jj-log.md

17 lines
452 B
Markdown
Raw Normal View History

# jj log
> Show revision history as a graph.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-log>.
- Show revision history as a graph:
`jj log`
- Show only given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
`jj log {{[-r|--revisions]}} {{revsets}}`
- Show log with a particular template for each line (e.g. 5 characters of commit hash and author):
`jj log {{[-T|--template]}} 'commit_id.shortest(5) ++ " " ++ author'`