← 返回命令列表

Linux command

jj-diff 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show working copy diff

jj diff

Diff specific revision

jj diff -r [revision]

Diff between revisions

jj diff --from [rev1] --to [rev2]

Diff specific file

jj diff [file]

说明

jj diff shows differences between revisions in Jujutsu. By default, shows changes in the working copy. Use -r for specific revision or --from/--to for range comparisons.

参数

-r, --revision _rev_
Show changes in revision.
--from _rev_
Start revision for comparison.
--to _rev_
End revision for comparison.
-s, --summary
Show summary only.
--stat
Show diffstat.

FAQ

What is the jj-diff command used for?

jj diff shows differences between revisions in Jujutsu. By default, shows changes in the working copy. Use -r for specific revision or --from/--to for range comparisons.

How do I run a basic jj-diff example?

Run `jj diff` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r, --revision _rev_ do in jj-diff?

Show changes in revision.