diff options
author | Josh Triplett <josh@freedesktop.org> | 2007-04-28 18:40:28 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-29 02:05:06 -0700 |
commit | 28a94f885a735e7474357698ec384de24d526620 (patch) | |
tree | b802381981a49f53dbc332965623b44984b91a76 /Documentation | |
parent | 25dc5e2995cc60c59a29b07963f71a1f7608b52f (diff) | |
download | git-28a94f885a735e7474357698ec384de24d526620.tar.gz git-28a94f885a735e7474357698ec384de24d526620.tar.xz |
Fall back to $EMAIL for missing GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL
Some other programs get the user's email address from $EMAIL, so fall back to
that if we don't have a Git-specific email address.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 4 | ||||
-rw-r--r-- | Documentation/git-commit-tree.txt | 1 | ||||
-rw-r--r-- | Documentation/git.txt | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index e0aff5369..c257cdf52 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -610,8 +610,8 @@ tar.umask:: user.email:: Your email address to be recorded in any newly created commits. - Can be overridden by the 'GIT_AUTHOR_EMAIL' and 'GIT_COMMITTER_EMAIL' - environment variables. See gitlink:git-commit-tree[1]. + Can be overridden by the 'GIT_AUTHOR_EMAIL', 'GIT_COMMITTER_EMAIL', and + 'EMAIL' environment variables. See gitlink:git-commit-tree[1]. user.name:: Your full name to be recorded in any newly created commits. diff --git a/Documentation/git-commit-tree.txt b/Documentation/git-commit-tree.txt index 1571dbbb7..504a3aa1b 100644 --- a/Documentation/git-commit-tree.txt +++ b/Documentation/git-commit-tree.txt @@ -61,6 +61,7 @@ either `.git/config` file, or using the following environment variables. GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE + EMAIL (nb "<", ">" and "\n"s are stripped) diff --git a/Documentation/git.txt b/Documentation/git.txt index 08ba53ae0..c5d02dacd 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -345,6 +345,7 @@ git Commits 'GIT_COMMITTER_NAME':: 'GIT_COMMITTER_EMAIL':: 'GIT_COMMITTER_DATE':: +'EMAIL':: see gitlink:git-commit-tree[1] git Diffs |