Skip to content

Commit

Permalink
git send-email: make the message file name more specific.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pierre Habouzit authored and Junio C Hamano committed Nov 11, 2008
1 parent a9645b7 commit caf0c3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ sub format_2822_time {
sub unique_email_list(@);
sub cleanup_compose_files();

# Constants (essentially)
my $compose_filename = ".msg.$$";

# Variables we fill in automatically, or via prompting:
my (@to,@cc,@initial_cc,@bcclist,@xh,
$initial_reply_to,$initial_subject,@files,$author,$sender,$smtp_authpass,$compose,$time);
Expand All @@ -149,6 +146,7 @@ sub format_2822_time {

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

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

0 comments on commit caf0c3d

Please sign in to comment.