diff options
author | Jay Soffian <jaysoffian@gmail.com> | 2009-02-23 13:51:37 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-23 22:03:50 -0800 |
commit | afe756c936334a5a374a8e0e8ee70a7f319dd71b (patch) | |
tree | b670a2485baa4ea928ab29c80d876d401b9894a3 /builtin-show-ref.c | |
parent | send-email: --suppress-cc improvements (diff) | |
download | tgif-afe756c936334a5a374a8e0e8ee70a7f319dd71b.tar.xz |
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>
Diffstat (limited to 'builtin-show-ref.c')
0 files changed, 0 insertions, 0 deletions