shithub: riscv

ref: 578af37678b2ea16e29d950cbc352823cd2491ab
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).