]> git.ipfire.org Git - thirdparty/git.git/commit - imap-send.c
imap-send.c: support GIT_CURL_VERBOSE
authorKyle J. McKay <mackyle@gmail.com>
Tue, 6 Jan 2015 11:00:55 +0000 (03:00 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jan 2015 20:17:37 +0000 (12:17 -0800)
commitd47e55da92932eecb58d01a7d925efa36f30087d
treea5913160f81d7e0098ceeb71b75b583c725927af
parent1e16b255b95b45374db0b0cf69ef0ecce768ac27
imap-send.c: support GIT_CURL_VERBOSE

When using git-imap-send to send via cURL, support setting
the GIT_CURL_VERBOSE environment variable to enable cURL's
verbose mode.

The existing http.c code already supports this and does
it by simply checking to see whether or not the environment
variable exists -- it does not examine the value at all.

For consistency, enable CURLOPT_VERBOSE when GIT_CURL_VERBOSE
is set by using the exact same test that http.c does.

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