]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
config: allow giving separate author and committer idents
authorWilliam Hubbs <williamh@gentoo.org>
Mon, 4 Feb 2019 18:48:50 +0000 (12:48 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Feb 2019 20:18:13 +0000 (12:18 -0800)
commit39ab4d0951ba64edcfae7809740715991b44fa6d
tree262e584b777c84928d7bb6ed6bf7360693eb8612
parent16a465bc018d09e9d7bbbdc5f40a7fb99c21f8ef
config: allow giving separate author and committer idents

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: William Hubbs <williamh@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/user.txt
blame.c
builtin/am.c
builtin/commit.c
cache.h
config.c
ident.c
log-tree.c
sequencer.c
t/t7517-per-repo-email.sh