aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2008-11-11 00:53:59 +0100
committerJunio C Hamano <gitster@pobox.com>2008-11-11 12:19:07 -0800
commitcaf0c3d692a5a4639e48499711271cb279ecd0dc (patch)
treee19306a06db3d24f05990aaa52074d7794a0173d /git-send-email.perl
parenta9645b780b698703cd7dee25051d6ce39b0544c6 (diff)
downloadgit-caf0c3d692a5a4639e48499711271cb279ecd0dc.tar.gz
git-caf0c3d692a5a4639e48499711271cb279ecd0dc.tar.xz
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 94ca5c89a..aaace02fa 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -124,9 +124,6 @@ my $auth;
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);
@@ -149,6 +146,7 @@ if ($@) {
# 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);