ejwa / gitinspector

:bar_chart: The statistical analysis tool for git repositories
GNU General Public License v3.0
2.38k stars 328 forks source link

Add a way to merge authors #151

Closed JalilArfaoui closed 7 years ago

JalilArfaoui commented 7 years ago

During the lifetime of a project, a single author may have used different emails in his commits, and different display names ...

It would be great to have the option of merging different detected authors into a single one.

For example, I have a project where I can see in authors "Jalil Arfaoui", "Jalil ARFAOUI" and "jarfaoui".

If I could have and option to specify a mapping for exemple, either in command line of via a config file :

gitinspector -A "Jalil ARFAOUI":"Jalil Arfaoui","jarfaoui": "Jalil Arfaoui"

Or via a .gitinspector file :

{
  "authors": {
    "mapping": {
      "Jalil ARFAOUI": "Jalil Arfaoui",
      "jarfaoui": "Jalil Arfaoui",
   }
}
adam-waldenberg commented 7 years ago

Hi @JalilArfaoui.

There is no need for this in gitinspector. It's already an integral feature of GIT. It's also covered in the FAQ.

Please also refer to issue #105.

JalilArfaoui commented 7 years ago

Oh I didn't know about .mailmap file ! This is so cool

Thank you @adam-waldenberg !

Sorry for the unneeded issue

adam-waldenberg commented 7 years ago

No worries. Enjoy gitinspector :)