shithub: front

ref: 26f0aa33d91442fc7a56fc5f5c9b56b5f5f84ce2
dir: /sys/man/1/vdiff/

View raw version
.TH VDIFF 1
.SH NAME
vdiff \- a visual diff viewer
.SH SYNOPSIS
.B vdiff
[
.B -b
]
[
.B -p
.I nstrip
]
[
.I patches...
]
.SH DESCRIPTION
.I Vdiff
reads unified diff output from the list of
.I patches
or standard input and displays a colored version.
Each file within the diff is displayed in a separate block that can be collapsed by clicking on the file name.
Right clicking on a line will send a
.IR plumb (6)
message to the
.B edit
port.
Pressing
.B q
or
.B del
will exit
.IR vdiff .
.PP
A menu may be summoned with button 2 of the mouse.
It provides menu items for collapsing and expanding all files,
as well as items for each patch present in the input.
.I Vdiff
understands terminators supplied by
.IR git/export (2).
.PP
The
.B -b
flag changes the color scheme to white text on a black background.
.PP
The
.B -p
flag removes
.I nstrip
path elements from the path before plumbing.
.SH EXAMPLE
.EX
% git/diff | vdiff
.EE
.SH SOURCE
.B /sys/src/cmd/vdiff.c
.SH SEE ALSO
.IR diff (1)
.SH HISTORY
vdiff first appeared in 9front (January, 2024).