• Antoine Pelisse's avatar
    mailmap: simplify map_user() interface · ea02ffa3
    Antoine Pelisse authored
    Simplify map_user(), mostly to avoid copies of string buffers. It
    also simplifies caller functions.
    
    map_user() directly receive pointers and length from the commit buffer
    as mail and name. If mapping of the user and mail can be done, the
    pointer is updated to a new location. Lengths are also updated if
    necessary.
    
    The caller of map_user() can then copy the new email and name if
    necessary.
    Signed-off-by: Antoine Pelisse's avatarAntoine Pelisse <[email protected]>
    Signed-off-by: default avatarJunio C Hamano <[email protected]>
    ea02ffa3
mailmap.h 271 Bytes