From: Valentin Haenel Date: Mon, 4 Jun 2012 14:08:48 +0000 (+0200) Subject: use git shortlog and .mailmap to remove duplicates X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/938e89c08ff1e41d18a159a5f125a860f7f83bcc?hp=938e89c08ff1e41d18a159a5f125a860f7f83bcc use git shortlog and .mailmap to remove duplicates 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 Richard Hartmann Richard Hartmann Dieter Plaetinck Corey Quinn Gernot Schulz 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 Richard Hartmann Dieter Plaetinck Corey Quinn Gernot Schulz Alphabetical sorting on the second field (which, incidentally, may be a middle name) is preserved. ---