]> granicus.if.org Git - git/commit
pretty: add "%aL"|"%al|%cL|%cl" option to output local-part of email addresses
authorPrarit Bhargava <prarit@redhat.com>
Thu, 24 Oct 2019 23:36:17 +0000 (19:36 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Oct 2019 05:52:03 +0000 (14:52 +0900)
commit42748e5ad4e5e5c57056cb297446f96befe746c5
tree1ef5025db98e6902681ff1fd4e297bcb0c3f8118
parent45e206f0d845cfc85c39c98d0090104e72176d71
pretty: add "%aL"|"%al|%cL|%cl" option to output local-part of email addresses

In many projects the number of contributors is low enough that users know
each other and the full email address doesn't need to be displayed.
Displaying only the author's username saves a lot of columns on the screen.
For example displaying "prarit" instead of "prarit@redhat.com" saves 11
columns.

Add a "%aL"|"%al|%cL|%cl" option that output the local-part of an email
address.

Also add tests for "%ae","%an", "%ce", and "%cn".

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c
t/t4203-mailmap.sh
t/t6006-rev-list-format.sh
t/test-lib.sh