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>
Ryan Anderson committed
Feb 2, 2006 at 11:56 UTC
d366c7037679794edff38cdbc422997607aca5f1
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -125,7 +125,7 @@ if ($compose) {
125
# effort to have it be unique
126
open(C,">",$compose_filename)
127
or die "Failed to open for writing $compose_filename: $!";
128
- print C "From \n";
128
+ print C "From $from # This line is ignored.\n";
129
printf C "Subject: %s\n\n", $initial_subject;
130
printf C <<EOT;
131
GIT: Please enter your email below.