Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use git shortlog and .mailmap to remove duplicates #30

Merged
merged 1 commit into from
Jun 11, 2012
Merged

use git shortlog and .mailmap to remove duplicates #30

merged 1 commit into from
Jun 11, 2012

Conversation

esc
Copy link
Contributor

@esc esc commented Jun 5, 2012

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.

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.
@esc
Copy link
Contributor Author

esc commented Jun 5, 2012

Rebased version of #28 with fixes

RichiH added a commit that referenced this pull request Jun 11, 2012
use git shortlog and .mailmap to remove duplicates
@RichiH RichiH merged commit 5fa85a6 into RichiH:master Jun 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants