{"thread":{"id":"8874","subject":"[PATCH] git-send-email: allow an email alias for --from","startedAt":"2007-07-05T01:11:36Z","lastAt":"2007-07-06T05:43:18Z","messageCount":2,"participants":["Michael Hendricks","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46523","messageId":"11835978963177-git-send-email-michael@ndrix.org","threadId":"8874","inReplyTo":null,"subject":"[PATCH] git-send-email: allow an email alias for --from","fromName":"Michael Hendricks","fromEmail":"michael@ndrix.org","sentAt":"2007-07-05T01:11:36Z","receivedAt":"2007-07-05T01:11:36Z","isPatch":true,"sender":{"key":"michael@ndrix.org","avatar":"https://gravatar.com/avatar/315311e6daa79f24e5648f9534420c24ec48eada42efd4110f1d17167ff44fa8?d=mp&s=160"},"body":"\nSigned-off-by: Michael Hendricks <michael@ndrix.org>\n---\n\nI don't like seeing all the output and confirming the From address\nwhen I don't specify --from.  Since I have aliases for my own email\naddresses, this is easier than always typing out the full address.\n\nIt also does what I would expect since every other email address can\nbe specified as an alias.  Why not From also?\n\n git-send-email.perl |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex 87f59fa..89f7c36 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -254,6 +254,8 @@ if (@alias_files and $aliasfiletype and defined $parse_alias{$aliasfiletype}) {\n \t}\n }\n \n+($from) = expand_aliases($from) if defined $from;\n+\n my $prompting = 0;\n if (!defined $from) {\n \t$from = $author || $committer;\n-- \n1.5.3.rc0.14.gebe8f\n"},{"id":"46596","messageId":"7v8x9ugk95.fsf@assigned-by-dhcp.cox.net","threadId":"8874","inReplyTo":"11835978963177-git-send-email-michael@ndrix.org","subject":"Re: [PATCH] git-send-email: allow an email alias for --from","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-07-06T05:43:18Z","receivedAt":"2007-07-06T05:43:18Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This sounds sane.  List?\n"}]}