summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorRyan Anderson <ryan@michonline.com>2006-02-02 16:56:06 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-03 01:52:50 (GMT)
commitd366c7037679794edff38cdbc422997607aca5f1 (patch)
treed7f7c449824ae921ed0ff066cf98f2e066272404 /git-send-email.perl
parent6bfb27a0c5d742306905ed9c0962ba3c0a091625 (diff)
downloadgit-d366c7037679794edff38cdbc422997607aca5f1.zip
git-d366c7037679794edff38cdbc422997607aca5f1.tar.gz
git-d366c7037679794edff38cdbc422997607aca5f1.tar.bz2
Provide a more meaningful initial "From " line when using --compose in git-send-email.
git-send-email, when used with --compose, provided the user with a mbox-format file to edit. Some users, however, were confused by the leading, blank, "From " line, so this change puts the value that will appear on the From: line of the actual email on this line, along with a note that the line is ignored. Signed-off-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index ec1428d..51b7513 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -125,7 +125,7 @@ if ($compose) {
# effort to have it be unique
open(C,">",$compose_filename)
or die "Failed to open for writing $compose_filename: $!";
- print C "From \n";
+ print C "From $from # This line is ignored.\n";
printf C "Subject: %s\n\n", $initial_subject;
printf C <<EOT;
GIT: Please enter your email below.