git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] imap-send.c: support GIT_CURL_VERBOSE

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 6, 2015, 20:17 UTC
Message-ID
<xmqqmw5voe8c.fsf@gitster.dls.corp.google.com>
In-Reply-To
<ce80e4296739f2fce0d70ddf4a710fb@74d39fa044aa309eaea14b9f57fe79c>
"Kyle J. McKay" <mackyle@gmail.com> writes:
Show 17 quoted lines
> When using git-imap-send to send via cURL, support setting
> the GIT_CURL_VERBOSE environment variable to enable cURL's
> verbose mode.
> ...
> diff --git a/imap-send.c b/imap-send.c
> index 4dfe4c25..060df834 100644
> --- a/imap-send.c
> +++ b/imap-send.c
> @@ -1431,7 +1431,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
>  
>  	curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
>  
> -	if (0 < verbosity)
> +	if (0 < verbosity || getenv("GIT_CURL_VERBOSE"))
>  		curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
>  
>  	return curl;
Makes sense; thanks.
Previous: Kyle J. McKay
Message 2 of 2 in “imap-send.c: support GIT_CURL_VERBOSE”
  1. imap-send.c: support GIT_CURL_VERBOSEKyle J. McKay, Jan 6, 2015
  2. Junio C HamanoJan 6, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.