shithub: riscv

ref: 4cdad07b986ada742ae0198e2bea4208685b500a
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 strip
]
.SH DESCRIPTION
.I vdiff
reads unified diff output from standard input and displays a colored version. Each file diff is displayed in a separate block that can be collapsed by a click 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
.B vdiff.
.PP
The
.B \-b
flag changes the color scheme to white text on a black background.
.PP
The
.B \-p
.I nstrip
flag removes
.I nstrip
path elements from path before plumbing.
.SH EXAMPLE
% git/diff |vdiff
.SH SOURCE
/sys/src/cmd/vdiff.c
.SH SEE ALSO
.IR diff (1)
.SH HISTORY
vdiff first appeared in 9front (January, 2024).