]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
Add pretty format %aN which gives the author name, respecting .mailmap
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 11 Jul 2008 23:28:18 +0000 (00:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 12 Jul 2008 04:16:37 +0000 (21:16 -0700)
commite0cbc39768884a1e7edcf2dbf6e6825c4b23485a
treeb97af457b406343bcd49677ca09e6fd211591ddd
parente09c4e753c337d914f4eb7a05cb5e8bbfc362489
Add pretty format %aN which gives the author name, respecting .mailmap

The pretty format %an does not respect .mailmap, but gives the exact
author name recorded in the commit.  Sometimes it is more desirable,
however, to look if the email has another name mapped to it in .mailmap.

This commit adds %aN (and %cN for the committer name) to do exactly that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c