send-email: explicitly disable authentication
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 23 Oct 2018 03:24:25 +0000 (22:24 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Oct 2018 04:37:14 +0000 (13:37 +0900)
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.

--smtp-auth and sendemail.smtpauth now understand the value 'none' which
means to disable authentication completely, even if an authentication
user is specified.

The value 'none' is lower case to avoid conflicts with any RFC 4422
authentication mechanisms.

The user may also specify the command line argument --no-smtp-auth as a
shorthand for --smtp-auth=none

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found