public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] format-patch: fix from header in cover letter
@ 2026-02-14  5:49 Mirko Faina
  2026-02-16 11:01 ` Junio C Hamano
  2026-02-16 15:27 ` [PATCH v2] format-patch: fix From " Mirko Faina
  0 siblings, 2 replies; 17+ messages in thread
From: Mirko Faina @ 2026-02-14  5:49 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Mirko Faina

From: Mroik <mroik@delayed.space>

Fixes "From" header for the cover letter when `--from` is passed

Signed-off-by: Mroik <mroik@delayed.space>
---
 builtin/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtin/log.c b/builtin/log.c
index d43ca693bf..df41b43fce 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -1345,7 +1345,7 @@ static void make_cover_letter(struct rev_info *rev, int use_separate_file,
 	if (!cmit_fmt_is_mail(rev->commit_format))
 		die(_("cover letter needs email format"));
 
-	committer = git_committer_info(0);
+	committer = cfg->from ? cfg->from : git_committer_info(0);
 
 	if (use_separate_file &&
 	    open_next_file(NULL, rev->numbered_files ? NULL : "cover-letter", rev, quiet))
-- 
2.53.0

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-02-20 18:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-14  5:49 [PATCH] format-patch: fix from header in cover letter Mirko Faina
2026-02-16 11:01 ` Junio C Hamano
2026-02-16 15:27 ` [PATCH v2] format-patch: fix From " Mirko Faina
2026-02-17  6:22   ` Patrick Steinhardt
2026-02-17  6:34     ` Jeff King
2026-02-17 13:21       ` D. Ben Knoble
2026-02-19 11:29         ` Jeff King
2026-02-19 12:03           ` Mirko Faina
2026-02-19 13:43           ` D. Ben Knoble
2026-02-17 15:22       ` Junio C Hamano
2026-02-19 11:43         ` Jeff King
2026-02-20 18:11           ` Junio C Hamano
2026-02-17 22:04   ` [PATCH] " Mroik
2026-02-17 22:13     ` Mirko Faina
2026-02-17 22:43       ` Junio C Hamano
2026-02-17 22:41     ` Junio C Hamano
2026-02-17 23:25     ` [PATCH v4] " Mirko Faina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox