What's with the CVS "changed since" +/- line counts?

What's with the CVS "changed since" +/- line counts?

by Samuli Karevaara -
Number of replies: 2
This is obviously a non-issue, but out of curiosity: I'm looking at log of /moodle/file.php. The Rev 1.45 says "changed since 1.45 +8 -2 lines". But looking at the commit diff shows only +6 lines, no deletions or modifications.

For example this: http://dev.w3.org/cvsweb/html5/html4-differences/Overview.html seems to be in sync with the +/- line count.

The same "off-by-one-or-two" applies to all commits. What's the deal?
Average of ratings: -
In reply to Samuli Karevaara

Re: What's with the CVS "changed since" +/- line counts?

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you have a look at the real diff (for example in the unified diff format, see http://moodle.cvs.sourceforge.net/moodle/moodle/file.php?r1=1.44&r2=1.45&diff_format=u), you'll see that there are in fact 2 deletions, and 6 additions). The color diff is hiding some changes in fact (for example, the $Id$ line, with the CVS tag expansion).

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: What's with the CVS "changed since" +/- line counts?

by Samuli Karevaara -
Thanks for the clarification! I suspected the keyword ignoring... But the require_login() thing is interesting, the color diff is smarter here, as the true diff doesn't recognize that the line just moved (probably because of the indendation, color diff is ignoring whitespace-only-changes, I guess).