Re: [PATCH v2] send-email: explicitly disable authentication
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 23, 2018, 00:32 UTC
- Message-ID
- <xmqqd0s1tsdd.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20181022175248.3940-1-JPEWhacker@gmail.com>
Joshua Watt <jpewhacker@gmail.com> writes:
> It can be necessary to disable SMTP authentication by a mechanism other > than sendemail.smtpuser being undefined. For example, if the user has > sendemail.smtpuser set globally but wants to disable authentication > locally in one repository.
I wonder if it would be more productive to introduce a mechanism that can be used to address that use case more directly. For example, would it help to teach "git send-email" that sendemail.smtpuser set to a particular value (say '!', or empty string if you prefer) is equivalent to the variable unset at all?