]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: don't create temporary compose file until it is needed
authorJay Soffian <jaysoffian@gmail.com>
Mon, 23 Feb 2009 18:51:37 +0000 (13:51 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2009 06:03:50 +0000 (22:03 -0800)
commitafe756c936334a5a374a8e0e8ee70a7f319dd71b
treeb670a2485baa4ea928ab29c80d876d401b9894a3
parent3531e2703d8e441bfb4a6765459317b3db3f224c
send-email: don't create temporary compose file until it is needed

Commit eed6ca7 caused a minor regression when it switched to using
tempfile() to generate the temporary compose file. Since tempfile()
creates the file at the time it generates the filename, zero-length
temporary files are being left behind unless --compose is used (in which
case the file is cleaned up).

This patch fixes the regression by not calling tempfile() to generate
the compose filename unless --compose is in use.

Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl