shortlog: support --pretty=format: option
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 14 Jul 2008 18:08:52 +0000 (19:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2008 14:37:00 +0000 (07:37 -0700)
commitb526f8ed4de646bb914da43b60322852febde758
tree80b3064735c65c08d9a8af2833dcd9f1b32e9a32
parent1e5aaa6db38964fd6ca679864c0a40f7af01cf1a
shortlog: support --pretty=format: option

With this patch, the user can override the default setting, to print
the commit messages using a user format instead of the onelines of the
commits.  Example:

$ git shortlog --pretty='format:%s (%h)' <commit>..

Note that shortlog will only respect a user format setting, as the other
formats do not make much sense.

Wished for by Andrew Morton.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-shortlog.c
shortlog.h