The filetypes can be extended using a configuration files, where
is possible to associate file type and its corresponden regular
expression.
The code includes a script to test the regex without running
gitdm.
Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
Two new dumps were added: per filetype and for every changeset.
It necessary to set a prefix where to dump the data in csv,
because it will be generated one csv file per file type.
Now it is possible to get statistics per code, documentation,
build scripts, translations, multimedia and developers
documentation. This feature is useful for repositories where
there are different types of file, rather than code.
The detailed information does not use the Aggregate parameter.
Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
The option --numstat of git log gives the statistics of
lines added and removed file. Hence, it is not necessary
to parser a raw diff.
Another benefit, it is a less verbose log to be processed,
which helps to process long logs. This also prepares the
code for counting the changes per file type.
Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
A certain obnoxious developer wants his contributions to be split between
two employers. So add the "VirtualEmployer" mechanism to make that
possible. A virtual employer is defined with:
VirtualEmployer ve-name
nn% real-name
...
end
(This construct must appear in the main configuration file). Developers
can be associated with the virtual employer in the usual way; at report
time, any changes credited to that employer will be split among the real
employers according to the percentages provided.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
When using -w option together with the -x file option, the data exported
in the CSV file are aggregated by weeks instead of months (the default).
This is useful to extract meaningful stats on short periods.
logs containing weird email addresses like this can be handled in the
aliases file to remap them to a correct address.
"joe.hacker@acme.org <Joe Hacker>
Added some documentation in the README file for this
Instead boringly be replicating the directory base name where gitdm is
installed and write it on each option inside the configuration file, just send
it through the command line.
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>