Skip to content
Snippets Groups Projects
Select Git revision
0 results

.mailmap

Blame
    • Valentin Haenel's avatar
      938e89c0
      use git shortlog and .mailmap to remove duplicates · 938e89c0
      Valentin Haenel authored
      When using the basic log command one of the authors shows up twice:
      
      zsh» git log --all --format='%an <%ae>' | sort -u -k2
      Vincent Demeester <vincent@demeester.fr>
      Richard Hartmann <richih+github.com@richih.org>
      Richard Hartmann <richih.mailinglist@gmail.com>
      Dieter Plaetinck <dieter@plaetinck.be>
      Corey Quinn <corey@sequestered.net>
      Gernot Schulz <post@gernot-schulz.com>
      
      If you instead use the git shortlog version with the .mailmap file you get:
      
      zsh» git shortlog -se --all | cut -f1 --complement | sort -u -k2
      
      Vincent Demeester <vincent@demeester.fr>
      Richard Hartmann <richih.mailinglist@gmail.com>
      Dieter Plaetinck <dieter@plaetinck.be>
      Corey Quinn <corey@sequestered.net>
      Gernot Schulz <post@gernot-schulz.com>
      
      Alphabetical sorting on the second field (which, incidentally, may be a middle
      name) is preserved.
      938e89c0
      History
      use git shortlog and .mailmap to remove duplicates
      Valentin Haenel authored
      When using the basic log command one of the authors shows up twice:
      
      zsh» git log --all --format='%an <%ae>' | sort -u -k2
      Vincent Demeester <vincent@demeester.fr>
      Richard Hartmann <richih+github.com@richih.org>
      Richard Hartmann <richih.mailinglist@gmail.com>
      Dieter Plaetinck <dieter@plaetinck.be>
      Corey Quinn <corey@sequestered.net>
      Gernot Schulz <post@gernot-schulz.com>
      
      If you instead use the git shortlog version with the .mailmap file you get:
      
      zsh» git shortlog -se --all | cut -f1 --complement | sort -u -k2
      
      Vincent Demeester <vincent@demeester.fr>
      Richard Hartmann <richih.mailinglist@gmail.com>
      Dieter Plaetinck <dieter@plaetinck.be>
      Corey Quinn <corey@sequestered.net>
      Gernot Schulz <post@gernot-schulz.com>
      
      Alphabetical sorting on the second field (which, incidentally, may be a middle
      name) is preserved.