imap-send: use cURL automatically when NO_OPENSSL defined
commitdcd01ea187fc9a936b4083a85343989840afd7bd
authorKyle J. McKay <mackyle@gmail.com>
Sun, 8 Mar 2015 05:13:55 +0000 (7 21:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2015 22:19:05 +0000 (10 15:19 -0700)
tree99ae30b57b30f4f6966806557fdba53e38780837
parent230c09c06a7300870f3915c54eff7d9335850a4a
imap-send: use cURL automatically when NO_OPENSSL defined

If both USE_CURL_FOR_IMAP_SEND and NO_OPENSSL are defined do
not force the user to add --curl to get a working git imap-send
command.

Instead automatically select --curl and warn and ignore the
--no-curl option.  And while we're in there, correct the
warning message when --curl is requested but not supported.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-imap-send.txt
imap-send.c