shithub: front

ref: db821f2de25161522bee09d69f9a9e0962f7ca06
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 file
]
.SH DESCRIPTION
.I vdiff
reads unified diff output from
.I file
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.
.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).