Skip to content

Commit 212fa1d

Browse files
committed
Merge branch 'tp/send-email-from-config'
* tp/send-email-from-config: send-email: Add config option for sender address
2 parents 2c8f8b1 + 09caa24 commit 212fa1d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Documentation/git-send-email.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ and In-Reply-To headers will be used unless they are removed.
6969
Missing From or In-Reply-To headers will be prompted for.
7070

7171
--from=<address>::
72-
Specify the sender of the emails. This will default to
73-
the value GIT_COMMITTER_IDENT, as returned by "git var -l".
74-
The user will still be prompted to confirm this entry.
72+
Specify the sender of the emails. If not specified on the command line,
73+
the value of the 'sendemail.from' configuration option is used. If
74+
neither the command line option nor 'sendemail.from' are set, then the
75+
user will be prompted for the value. The default for the prompt will be
76+
the value of GIT_AUTHOR_IDENT, or GIT_COMMITTER_IDENT if that is not
77+
set, as returned by "git var -l".
7578

7679
--in-reply-to=<identifier>::
7780
Specify the contents of the first In-Reply-To header.

git-send-email.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ sub do_edit {
210210
"envelopesender" => \$envelope_sender,
211211
"multiedit" => \$multiedit,
212212
"confirm" => \$confirm,
213+
"from" => \$sender,
213214
);
214215

215216
# Handle Uncouth Termination

0 commit comments

Comments
 (0)