Re: [PATCH 1/2] log: grep author/committer using mailmap

2012-12-26 Thread Junio C Hamano
Antoine Pelisse writes: >>> >>> +static int commit_rewrite_authors(struct strbuf *buf, const char *what, >>> struct string_list *mailmap) >>> +{ >>> + char *author, *endp; >>> + size_t len; >>> + struct strbuf name = STRBUF_INIT; >>> + struct strbuf mail = STRBUF_INIT; >>> +

Re: [PATCH 1/2] log: grep author/committer using mailmap

2012-12-26 Thread Antoine Pelisse
>> >> +static int commit_rewrite_authors(struct strbuf *buf, const char *what, >> struct string_list *mailmap) >> +{ >> + char *author, *endp; >> + size_t len; >> + struct strbuf name = STRBUF_INIT; >> + struct strbuf mail = STRBUF_INIT; >> + struct ident_split ident; >> + >> +

Re: [PATCH 1/2] log: grep author/committer using mailmap

2012-12-26 Thread Junio C Hamano
Antoine Pelisse writes: > Currently mailmap can be used to display log authors and committers > but there no way to use mailmap to find commits with mapped values. > > This commit allows those commands to work: > > git log --use-mailmap --author mapped_name_or_email > git log --use-mailma

[PATCH 1/2] log: grep author/committer using mailmap

2012-12-22 Thread Antoine Pelisse
Currently mailmap can be used to display log authors and committers but there no way to use mailmap to find commits with mapped values. This commit allows those commands to work: git log --use-mailmap --author mapped_name_or_email git log --use-mailmap --committer mapped_name_or_email Of