git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Provide a more meaningful initial "From " line when using --compose in git-send-email.

From
RARyan Anderson <ryan@michonline.com>
Date
Feb 2, 2006, 16:56 UTC
Message-ID
<11388993663675-git-send-email-ryan@michonline.com>
In-Reply-To
<11388993661745-git-send-email-ryan@michonline.com>

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>
---
 git-send-email.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
c6b0c22e482aa6fe314e4be077d705c98fee7bf2
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.
-- 
1.1.4.g3dcbd
Next: Ryan Anderson
Message 1 of 2 in “Provide a more meaningful initial "From " line when using --compose in git-send-email.”
  1. 1/2 Provide a more meaningful initial "From " line when using --compose in git-send-email.Ryan Anderson, Feb 2, 2006
  2. 2/2 git-send-email: Add --quiet to reduce some of the chatter when sending emails.Ryan Anderson, Feb 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.