Skip to content
  • William Hubbs's avatar
    config: allow giving separate author and committer idents · 39ab4d09
    William Hubbs authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The author.email, author.name, committer.email and committer.name
    settings are analogous to the GIT_AUTHOR_* and GIT_COMMITTER_*
    environment variables, but for the git config system. This allows them
    to be set separately for each repository.
    
    Git supports setting different authorship and committer
    information with environment variables. However, environment variables
    are set in the shell, so if different authorship and committer
    information is needed for different repositories an external tool is
    required.
    
    This adds support to git config for author.email, author.name,
    committer.email and committer.name  settings so this information
    can be set per repository.
    
    Also, it generalizes the fmt_ident function so it can handle author vs
    committer identification.
    
    Signed-off-by: default avatarWilliam Hubbs <williamh@gentoo.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    39ab4d09