← 返回命令列表

Linux command

jj-interdiff 命令

文本

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

常用示例

Show diff between two revisions' changes

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

Show interdiff with context

jj interdiff --from [rev1] --to [rev2] --context [5]

说明

jj interdiff shows the difference between the changes introduced by two revisions. Unlike regular diff which compares file contents, interdiff compares what each revision changed relative to its parent. Useful for comparing different implementations of the same change.

参数

--from _revision_
First revision to compare.
--to _revision_
Second revision to compare.
--context _lines_
Number of context lines.

FAQ

What is the jj-interdiff command used for?

jj interdiff shows the difference between the changes introduced by two revisions. Unlike regular diff which compares file contents, interdiff compares what each revision changed relative to its parent. Useful for comparing different implementations of the same change.

How do I run a basic jj-interdiff example?

Run `jj interdiff --from [rev1] --to [rev2]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --from _revision_ do in jj-interdiff?

First revision to compare.