1<div id="diff"></div> 2<div class="header"> 3<p> 4Next: [[cvs: export--Export sources from CVS, similar to checkout#export—Export sources from CVS, similar to checkout|export]], Previous: [[cvs: commit--Check files into the repository#commit—Check files into the repository|commit]], Up: [[cvs: Guide to CVS commands#Guide to CVS commands|CVS commands]] |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p> 5</div> 6 7---- 8 9<div id="diff_002d_002d_002dShow-differences-between-revisions"></div> 10=== diff—Show differences between revisions === 11<div id="index-diff-_0028subcommand_0029"></div> 12 13 14* Synopsis: diff <nowiki>[</nowiki>-lR<nowiki>]</nowiki> <nowiki>[</nowiki>-k kflag<nowiki>]</nowiki> <nowiki>[</nowiki>format_options<nowiki>]</nowiki> <nowiki>[[</nowiki>-r rev1 | -D date1<nowiki>]</nowiki> <nowiki>[</nowiki>-r rev2 | -D date2<nowiki>]]</nowiki> <nowiki>[</nowiki>files…<nowiki>]</nowiki> 15 16* Requires: working directory, repository. 17 18* Changes: nothing. 19 20The <code>diff</code> command is used to compare different 21revisions of files. The default action is to compare 22your working files with the revisions they were based 23on, and report any differences that are found. 24 25If any file names are given, only those files are 26compared. If any directories are given, all files 27under them will be compared. 28 29The exit status for diff is different than for other 30<small>CVS</small> commands; for details [[cvs: CVS's exit status#CVS’s exit status|Exit status]]. 31 32 [[cvs: diff options#diff options|• diff options]]:: diff options 33 [[cvs: diff examples#diff examples|• diff examples]]:: diff examples 34 35This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>]. 36