@matheusbsbs / matheus-bagliano / commits / caf0c3d692
Fork 0

git send-email: make the message file name more specific.

This helps editors choosing their syntax hilighting properly. Also make the file live under the git directory. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Pierre Habouzit committed Nov 11, 2008 at 00:53 UTC caf0c3d692a5a4639e48499711271cb279ecd0dc
1 file changed +1 -3
git-send-email.perl
+1 -3
@@ -124,9 +124,6 @@ my $auth;
124 sub unique_email_list(@);
125 sub cleanup_compose_files();
126
127 -# Constants (essentially)
128 -my $compose_filename = ".msg.$$";
129 -
127 # Variables we fill in automatically, or via prompting:
128 my (@to,@cc,@initial_cc,@bcclist,@xh,
129 $initial_reply_to,$initial_subject,@files,$author,$sender,$smtp_authpass,$compose,$time);
@@ -149,6 +146,7 @@ if ($@) {
146
147 # Behavior modification variables
148 my ($quiet, $dry_run) = (0, 0);
149 +my $compose_filename = $repo->repo_path() . "/.gitsendemail.msg.$$";
150
151 # Variables with corresponding config settings
152 my ($thread, $chain_reply_to, $suppress_from, $signed_off_by_cc, $cc_cmd);