The code never reads a file it is about to replace just to count its lines: stat gives the size and the age, and the new content's line count is known without reading anything. The spec overpromised the old count.
The code never reads a file it is about to replace just to count its lines: stat gives the size and the age, and the new content's line count is known without reading anything. The spec overpromised the old count.