author | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Feb 2008 00:46:36 +0000 (16:46 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Feb 2008 00:46:36 +0000 (16:46 -0800) |
* mw/send-email:
git-send-email: Better handling of EOF
git-send-email: SIG{TERM,INT} handlers
git-send-email: ssh/login style password requests
git-send-email: Better handling of EOF
git-send-email: SIG{TERM,INT} handlers
git-send-email: ssh/login style password requests
1 | 2 | |||
---|---|---|---|---|
Documentation/git-send-email.txt | patch | | diff1 | | diff2 | | blob | history |
git-send-email.perl | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/git-send-email.txt
Simple merge
diff --cc git-send-email.perl
index 8de5789f669aeefa1d5eba938e8b41442ede9ffa,9d7c1f4671f69866a56d5c0b5be443d296e48eb5..59601e36e854195c93f0a49bc3884567ed502595
--- 1/git-send-email.perl
--- 2/git-send-email.perl
+++ b/git-send-email.perl
# Variables with corresponding config settings
my ($thread, $chain_reply_to, $suppress_from, $signed_off_cc, $cc_cmd);
- my ($smtp_server, $smtp_server_port, $smtp_authuser, $smtp_authpass, $smtp_ssl);
+ my ($smtp_server, $smtp_server_port, $smtp_authuser, $smtp_ssl);
my ($identity, $aliasfiletype, @alias_files, @smtp_host_parts);
my ($no_validate);
+my (@suppress_cc);
my %config_bool_settings = (
"thread" => [\$thread, 1],
"aliasfiletype" => \$aliasfiletype,
"bcc" => \@bcclist,
"aliasesfile" => \@alias_files,
+ "suppresscc" => \@suppress_cc,
);
+ # Handle Uncouth Termination
+ sub signal_handler {
+
+ # Make text normal
+ print color("reset"), "\n";
+
+ # SMTP password masked
+ system "stty echo";
+
+ # tmp files from --compose
+ if (-e $compose_filename) {
+ print "'$compose_filename' contains an intermediate version of the email you were composing.\n";
+ }
+ if (-e ($compose_filename . ".final")) {
+ print "'$compose_filename.final' contains the composed email.\n"
+ }
+
+ exit;
+ };
+
+ $SIG{TERM} = \&signal_handler;
+ $SIG{INT} = \&signal_handler;
+
# Begin by accumulating all the variables (defined above), that we will end up
# needing, first, from the command line: