]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
git-send-email: SIG{TERM,INT} handlers
authorMichael Witten <mfwitten@MIT.EDU>
Mon, 4 Feb 2008 00:53:57 +0000 (19:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Feb 2008 08:36:10 +0000 (00:36 -0800)
commit874299760708e3bd4d63e9afa8da3fe8a7ddc006
treebd2bbb2a20cc02029ceb5dbe06eb88b992608431
parent2363d7467dcd60467b3e694b3ba6f859bb226f5c
git-send-email: SIG{TERM,INT} handlers

A single signal handler is used for both SIGTERM and
SIGINT in order to clean up after an uncouth termination
of git-send-email.

In particular, the handler resets the text color (this cleanup
was already present), turns on tty echoing (in case termination
occurrs during a masked Password prompt), and informs the user
of of any temporary files created by --compose.

Signed-off-by: Michael Witten <mfwitten@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl