Module pepper.diffstat

Interface for diffstats

Functions

diffstat:bytes_added (file) Returns the number of bytes added.
diffstat:bytes_removed (file) Returns the number of bytes removed.
diffstat:files () Returns an array of all files in the diffstat.
diffstat:lines_added (file) Returns the number of lines added.
diffstat:lines_removed (file) Returns the number of lines removed.
diffstat:new (source) Constructs a copy of the source diffstat.


Functions

diffstat:bytes_added (file)
Returns the number of bytes added. If the file parameter is omitted, the total number of bytes added is being returned

Parameters

  • file: An optional file name
diffstat:bytes_removed (file)
Returns the number of bytes removed. If the file parameter is omitted, the total number of bytes removed is being returned

Parameters

  • file: An optional file name
diffstat:files ()
Returns an array of all files in the diffstat.
diffstat:lines_added (file)
Returns the number of lines added. If the file parameter is omitted, the total number of lines added is being returned

Parameters

  • file: An optional file name
diffstat:lines_removed (file)
Returns the number of lines removed. If the file parameter is omitted, the total number of lines removed is being returned

Parameters

  • file: An optional file name
diffstat:new (source)
Constructs a copy of the source diffstat.

Parameters

  • source:

Valid XHTML 1.0!