version 1.122, 2009/03/25 09:47:26 |
version 1.123, 2009/04/28 09:05:39 |
|
|
program, except that the differential comparisons that it generates are |
program, except that the differential comparisons that it generates are |
between local or remote revisions of files stored in the CVS repository. |
between local or remote revisions of files stored in the CVS repository. |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
usage: cvs diff [-cilNnpRu] |
usage: cvs diff [-abcdilNnpRuw] |
[[-D date1 | -r rev1] [-D date2 | -r rev2]] |
[[-D date1 | -r rev1] [-D date2 | -r rev2]] |
[-k mode] [file ...] |
[-k mode] [file ...] |
.Ed |
.Ed |
|
|
.Ic diff |
.Ic diff |
command takes the following options: |
command takes the following options: |
.Bl -tag -width Ds -offset 3n |
.Bl -tag -width Ds -offset 3n |
|
.It Fl a |
|
Treat all files as ASCII text. |
|
See |
|
.Xr diff 1 |
|
for more information. |
|
.It Fl b |
|
Causes trailing blanks (spaces and tabs) to be ignored, and other |
|
strings of blanks to compare equal. |
.It Fl c |
.It Fl c |
Produces a diff with three lines of context. |
Produces a diff with three lines of context. |
See |
See |
.Xr diff 1 |
.Xr diff 1 |
for more information. |
for more information. |
|
.It Fl d |
|
Try very hard to produce a diff as small as possible. |
|
See |
|
.Xr diff 1 |
|
for more information. |
.It Xo Fl D Ar date1 |
.It Xo Fl D Ar date1 |
.Op Fl D Ar date2 |
.Op Fl D Ar date2 |
.Xc |
.Xc |
|
|
See |
See |
.Xr diff 1 |
.Xr diff 1 |
for more information. |
for more information. |
|
.It Fl w |
|
Is similar to |
|
.Fl b |
|
but causes whitespace (blanks and tabs) to be totally ignored. |
|
E.g., |
|
.Dq if (\ \&a == b \&) |
|
will compare equal to |
|
.Dq if(a==b) . |
.El |
.El |
.Pp |
.Pp |
Aliases: |
Aliases: |