author | Jay Soffian <jaysoffian@gmail.com> | |
Mon, 23 Feb 2009 18:51:37 +0000 (13:51 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 24 Feb 2009 06:03:50 +0000 (22:03 -0800) | ||
commit | afe756c936334a5a374a8e0e8ee70a7f319dd71b | |
tree | b670a2485baa4ea928ab29c80d876d401b9894a3 | tree | snapshot |
parent | 3531e2703d8e441bfb4a6765459317b3db3f224c | commit | diff |
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>
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 | diff | blob | history |