[Top][All Lists]

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

Re: CVS question

From: Eric Siegerman
Subject: Re: CVS question
Date: Mon, 27 May 2002 13:50:07 -0400
User-agent: Mutt/1.2.5i

On Fri, May 24, 2002 at 09:03:36AM +0100, Gavin Whitelaw wrote:
> I have a requirement for my version control tool in that I want to be able
> to see both the number of new lines of code and the number of changed
> lines of code between two consecutive versions of a file so I can see 
> some indication of the amount of coding effort.
> Does CVS support this?

You could always run "cvs diff", and pipe the output through a script
to total the "summary" lines:
        XaY,Z           Z-Y+1 lines added
        X,YdZ           Y-X+1 lines deleted
        X,YcZ,W         Hmmm, not sure; Y-X+1, or Z-W+1, or the maximum of
                        those, or the minimum?  Depends on your definition of
                        "change", I guess :-)


|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
Anyone who swims with the current will reach the big music steamship;
whoever swims against the current will perhaps reach the source.
        - Paul Schneider-Esleben

reply via email to

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