Skip to content

Log mailmap optimization

Antoine Pelisse git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10list_lookup: create case and length searchstring-list.c string-list.h+26 -62 replies
2/10Use split_ident_line to parse author and committerbuiltin/blame.c builtin/shortlog.c pretty.c+52 -780 replies
3/10mailmap: remove email copy and length limitationmailmap.c+6 -160 replies
4/10mailmap: simplify map_user() interfacebuiltin/blame.c builtin/shortlog.c mailmap.c +2 more+126 -1441 reply
5/10mailmap: add mailmap structure to rev_info and ppcommit.h log-tree.c revision.h+3 -00 replies
6/10pretty: use mailmap to display username and emailpretty.c+37 -210 replies
7/10log: add --use-mailmap optionDocumentation/git-log.txt builtin/log.c+13 -10 replies
8/10test: add test for --use-mailmap optiont/t4203-mailmap.sh+14 -00 replies
9/10log: grep author/committer using mailmaprevision.c t/t4203-mailmap.sh+72 -00 replies
10/10log: add log.mailmap configuration optionDocumentation/config.txt builtin/log.c t/t4203-mailmap.sh+35 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] Log mailmap optimization

Hi,

Here is a reroll of ap/log-mailmap.
The idea is to use another preparatory step:
Allow case-insensitive and length search in list_lookup

We can now search for mapping name and email without any copy. Of course a copy is then necessary to store the info, but we no longer need any copy to look-up the mapping (useful for replacing or not before grep).

Thanks,

Antoine Pelisse (10):
list_lookup: create case and length search Use split_ident_line to parse author and committer
mailmap: remove email copy and length limitation
mailmap: simplify map_user() interface
mailmap: add mailmap structure to rev_info and pp
pretty: use mailmap to display username and email
log: add --use-mailmap option
test: add test for --use-mailmap option
log: grep author/committer using mailmap
log: add log.mailmap configuration option

 Documentation/config.txt  |   4 +
 Documentation/git-log.txt |   5 ++
 builtin/blame.c           | 183 ++++++++++++++++++++++------------------------
 builtin/log.c             |  16 +++-
 builtin/shortlog.c        |  54 ++++----------
 commit.h                  |   1 +
 log-tree.c                |   1 +
 mailmap.c                 |  55 +++++---------
 mailmap.h                 |   4 +-
 pretty.c                  | 114 ++++++++++++++++-------------
 revision.c                |  54 ++++++++++++++
 revision.h                |   1 +
 string-list.c             |  30 ++++++--
 string-list.h             |   2 +
 t/t4203-mailmap.sh        |  56 ++++++++++++++
 15 files changed, 349 insertions(+), 231 deletions(-)

--
1.7.12.4.3.g2036a08.dirty