In many version control systems, including CVS , Perforce , AccuRev , Mercurial, and Team Foundation Server , the annotate command.
In Subversion and RCS , the blame command.
For example, with CVS:
cvs annotate foo.cc > foo_changes.txt
will create foo_changes.txt , which lists the version number and username associated with the last change for each line in the current version of foo.cc Using different parameters will give you the same information for previous versions or marked versions of a file.
I was also asked this question, but he did not immediately jump on me, reading the answers already published, so I hope this summary should help.
Scottie T
source share