summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-23 08:43:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-23 08:43:26 (GMT)
commit212fa1d96040a01054d6bd92ee2bb74fe7071d33 (patch)
treeedc084e738b88a7401957aaa7f9c805058d96611
parent2c8f8b19d4f293edd78885880ed1a6166395ffdd (diff)
parent09caa24facae88e19cce1c12f21dac935cbf0909 (diff)
downloadgit-212fa1d96040a01054d6bd92ee2bb74fe7071d33.zip
git-212fa1d96040a01054d6bd92ee2bb74fe7071d33.tar.gz
git-212fa1d96040a01054d6bd92ee2bb74fe7071d33.tar.bz2
Merge branch 'tp/send-email-from-config'
* tp/send-email-from-config: send-email: Add config option for sender address
-rw-r--r--Documentation/git-send-email.txt9
-rwxr-xr-xgit-send-email.perl1
2 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 794224b..f940770 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -69,9 +69,12 @@ and In-Reply-To headers will be used unless they are removed.
Missing From or In-Reply-To headers will be prompted for.
--from=<address>::
- Specify the sender of the emails. This will default to
- the value GIT_COMMITTER_IDENT, as returned by "git var -l".
- The user will still be prompted to confirm this entry.
+ Specify the sender of the emails. If not specified on the command line,
+ the value of the 'sendemail.from' configuration option is used. If
+ neither the command line option nor 'sendemail.from' are set, then the
+ user will be prompted for the value. The default for the prompt will be
+ the value of GIT_AUTHOR_IDENT, or GIT_COMMITTER_IDENT if that is not
+ set, as returned by "git var -l".
--in-reply-to=<identifier>::
Specify the contents of the first In-Reply-To header.
diff --git a/git-send-email.perl b/git-send-email.perl
index e3408d5..e793935 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -210,6 +210,7 @@ my %config_settings = (
"envelopesender" => \$envelope_sender,
"multiedit" => \$multiedit,
"confirm" => \$confirm,
+ "from" => \$sender,
);
# Handle Uncouth Termination