1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 17:35:25 +02:00

jj, jj-diff, jj-log, jj-status: add pages (#17041)

This commit is contained in:
Agam Agarwal 2025-07-03 14:05:16 +05:30 committed by GitHub
parent 617bae7d16
commit 3fd38f180d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 78 additions and 0 deletions

24
pages/common/jj-diff.md Normal file
View file

@ -0,0 +1,24 @@
# jj diff
> Compare file contents between two revisions.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-diff>.
- Show changes of current revision:
`jj diff`
- Show changes of given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
`jj diff {{[-r|--revisions]}} {{revsets}}`
- Show changes from given revision to given revision:
`jj diff {{[-f|--from]}} {{from_revset}} {{[-t|--to]}} {{to_revset}}`
- Show diff statistics:
`jj diff --stat`
- Show a Git-format diff:
`jj diff --git`

16
pages/common/jj-log.md Normal file
View file

@ -0,0 +1,16 @@
# 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'`

View file

@ -0,0 +1,9 @@
# jj status
> Show high-level repository status.
> This includes the working copy commit and its parents, and a summary of the changes in the working copy and any existing conflicts in the working copy.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-status>.
- Show high-level status of the repository:
`jj status`

29
pages/common/jj.md Normal file
View file

@ -0,0 +1,29 @@
# jj
> Jujutsu, a version control system.
> Some subcommands such as `log`, `desc`, `new`, `git`, etc. have their own usage documentation.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/>.
- Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
`jj describe {{[-r|--revision]}} {{revsets}}`
- Create a new commit/revision on top of a given revision :
`jj new {{revset}}`
- Create a new merge commit on top of multiple revisions:
`jj new {{revset1 revset2 ...}}`
- Execute a jj subcommand without snapshotting the working copy:
`jj --ignore-working-copy {{subcommand}}`
- Execute a jj subcommand at an operation:
`jj {{[--at-op|--at-operation]}} {{operation}} {{subcommand}}`
- Display help for a specific subcommand (like `new`, `commit`, `desc`, etc.):
`jj help {{subcommand}}`