Re: [PATCH 3/3] doc: give examples for send-email cc-cmd operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

>> I was trying to use, essentially, 'cat list.txt' as the command,...

One thing that needs to be made clear is that I do not think we want
to encourage `cat list.txt #` abuse in the first place.  It is an
unacceptable hack for us to encourage in the longer term.  It may
happen to work with the current implementation, but it does so
merely by depending on the implementation too much.

If it is so common to want to spray all your patches to exactly the
same list of recipients that is unconditionally determined, having
multiple sendemail.cc configuration variables, which are cumulative,
is already one way to do so, and you do not have to type such a long
option "--cc-cmd='cat $filename'" every time.

And if you do not want configuration for some reason, and having a
list of addresses in a flat file is so common, we could have a new
option "--cc-list=$filename" to support that use case.  I however
doubt anything that starts with "First you make a list of addresses
in a flat file, and then do this" is a good solution.

I would think that it would probably be the best way to address "I
often want to cc these recipients, but not always" is to keep a list
of aliases, each entry of which expands to the recipients, and say
"--cc=group" from the command line to have it expanded to the set of
recipients.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]