On 10-05-17, 12:18, Ævar Arnfjörð Bjarmason wrote: > On Wed, May 10, 2017 at 9:23 AM, Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote: > > Hi, > > > > I have a use case and wanted help from you guys.. > > > > I have set the sendemail.tocmd option in my kernel's .git/config > > file and that works very well. But sometimes I want to avoid that > > (for example sending the patch to someone without the list and > > maintainers). > > > > The suppress-cc=all option works quite well to avoid almost > > everything (including running --cc-cmd), but it doesn't suppress > > --to-cmd. > > > > Are there any specific reasons why it is being done that way? > > > > Currently I need to go edit my .git/config file and remove tocmd > > before sending any such patches and it sucks :) > > Does something like this work: > > git -c sendemail.tocmd=/bin/false send-email ... > > ? That failed. I tried with 2.12 version first and then on the next branch with version: 2.13.0.303.g4ebf3021692d $ git -c sendemail.tocmd=/bin/false send-email --to vingu 0001-abc.patch 0001-abc.patch (mbox) Adding cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx> from line 'From: Viresh Kumar <viresh.kumar@xxxxxxxxxx>' (body) Adding cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx> from line 'Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>' (to-cmd) failed to close pipe to '/bin/false' at /usr/libexec/git-core/git-send-email line 1687. -- viresh