ref: 8bcc99861e091e22f0950be771fdb1f1c01a35a0
dir: /sys/man/1/vdiff/
.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).