]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'mw/send-email'
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2008 00:46:36 +0000 (16:46 -0800)
committerJunio 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

1  2 
Documentation/git-send-email.txt
git-send-email.perl

Simple merge
index 8de5789f669aeefa1d5eba938e8b41442ede9ffa,9d7c1f4671f69866a56d5c0b5be443d296e48eb5..59601e36e854195c93f0a49bc3884567ed502595
@@@ -183,10 -175,9 +181,10 @@@ my ($quiet, $dry_run) = (0, 0)
  
  # 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],
@@@ -206,9 -197,31 +204,32 @@@ my %config_settings = 
      "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: