Previous: [[cvs: User-defined logging#User-defined logging|user-defined logging]], Up: [[cvs: History browsing#History browsing|History browsing]] |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|

----

=== Annotate command ===

;
Command<nowiki>:</nowiki> cvs annotate <nowiki>[</nowiki>`-FflR`<nowiki>]</nowiki> <nowiki>[</nowiki>`-r rev`|`-D date`<nowiki>]</nowiki> files …

: For each file in files, print the head revision of the trunk, together with information on the last modification for each line. For example:

$ cvs annotate ssfile Annotations for ssfile *************** 1.1 (mary 27-Mar-96): ssfile line 1 1.2 (joe 28-Mar-96): ssfile line 2

: The file ‘`ssfile`’ currently contains two lines. The `ssfile line 1` line was checked in by `mary` on March 27. Then, on March 28, `joe` added a line `ssfile line 2`, without modifying the `ssfile line 1` line. This report doesn’t tell you anything about lines which have been deleted or replaced; you need to use `cvs diff` for that (see [[cvs: diff--Show differences between revisions#diff—Show differences between revisions|diff]]).

The options to `cvs annotate` are listed in [[cvs: Quick reference to CVS commands#Quick reference to CVS commands|Invoking CVS]], and can be used to select the files and revisions to annotate. The options are described in more detail there and in [[cvs: Common command options#Common command options|Common options]].

This document was generated on a sunny day using [http://www.nongnu.org/texi2html/ texi2html].