Added ability to merge/rename authors
commit380b164bc5c643a11992a8a0a773092178b8b437
authorCiaran Gultnieks <ciaran.gultnieks@blueprism.com>
Tue, 17 Jul 2012 20:28:08 +0000 (17 21:28 +0100)
committerHeikki Hokkanen <hoxu@users.sf.net>
Thu, 19 Jul 2012 08:57:47 +0000 (19 11:57 +0300)
tree004660209b8ab65e3321009cbeb5874da25cc481
parent09e324e3d1a032280e4dbc3b0bf34560fc5dab79
Added ability to merge/rename authors

There's a new config field, 'merge_authors', which is a dictionary of
source name to target name. Whenever an author name matches a source
name it will be treated as if it was the target name instead.

Use this if authors have committed under multiple names, to squash their
statistics down to a single author. You can also use it to rename an
author for the purposes of the output.

Additionally, the -c option has been extended so for a dictionary option
you specify -c field=key,value. The key,value pair is then ADDED to the
dictionary.

Putting it all together in an example:

  ./gitstats -c merge_authors=bob,Bob\ Jones    \
      -c merge_authors=bob2,Bob\ Jones          \
      -c merge_authors=erica,Erica\ Smith ....

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
gitstats