bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lines modified in newly-added files


From: Neil Conway
Subject: lines modified in newly-added files
Date: Tue, 15 Feb 2005 12:41:27 +1100

CVS does not record the number of lines in a newly-added file. For
example:

% cat > newfile.c
line 1
line 2
line 3
% cvs add newfile.c 
cvs add: use `cvs commit' to add this file permanently
% cvs ci -m "File added." newfile.c 
/var/lib/cvs/cvs_test/newfile.c,v  <--  newfile.c
initial revision: 1.1
% cvs log newfile.c
[...]
revision 1.1
date: 2005-02-15 01:34:44 +0000;  author: neilc;  state: Exp;
File added.

I would like to see "lines: +3 0" associated with revision 1.1. It is
possible to get the number of lines modified via a kludge (fetch the 1.1
revision of the file and manually count the number of lines in it), but
I think it would be reasonable for CVS to provide this information
itself.

Let me know if you would be open to this modification, I would be happy
to submit a patch.

-Neil






reply via email to

[Prev in Thread] Current Thread [Next in Thread]