Skip to content

Commit caf0c3d

Browse files
MadCodergitster
authored andcommitted
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>
1 parent a9645b7 commit caf0c3d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

git-send-email.perl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ sub format_2822_time {
124124
sub unique_email_list(@);
125125
sub cleanup_compose_files();
126126

127-
# Constants (essentially)
128-
my $compose_filename = ".msg.$$";
129-
130127
# Variables we fill in automatically, or via prompting:
131128
my (@to,@cc,@initial_cc,@bcclist,@xh,
132129
$initial_reply_to,$initial_subject,@files,$author,$sender,$smtp_authpass,$compose,$time);
@@ -149,6 +146,7 @@ sub format_2822_time {
149146

150147
# Behavior modification variables
151148
my ($quiet, $dry_run) = (0, 0);
149+
my $compose_filename = $repo->repo_path() . "/.gitsendemail.msg.$$";
152150

153151
# Variables with corresponding config settings
154152
my ($thread, $chain_reply_to, $suppress_from, $signed_off_by_cc, $cc_cmd);

0 commit comments

Comments
 (0)