Skip to content
  • 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: default avatarAntoine Pelisse <apelisse@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    ea02ffa3