git send-email could check for no To: line
- From
- Matthew Wilcox <willy@infradead.org>
- Date
- Dec 6, 2017, 01:06 UTC
- Message-ID
- <20171206010613.GJ26021@bombadil.infradead.org>
I keep coming up with new and innovative ways to send stupid-looking emails with git send-email. Please save me from myself.
My latest SNAFU is to spend so much time setting up the 'cc' list in the git-format-patch step that I completely forgot to put anybody on the 'to' line, and even being prompted by git send-email that I might want to add somebody to the 'To' line wasn't enough.
Could there be an extra confirmation, perhaps in send_message() that
if ($cc ne '' && $to eq '') are_you_sure()
(you don't want me writing perl. you really don't.)