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

Re: [PATCHv3 3/3] http.c: implements the GIT_TRACE_CURL environment variable

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Apr 20, 2016, 19:56 UTC
Message-ID
<5717DEEC.4000903@ramsayjones.plus.com>
In-Reply-To
<xmqqzisoun5n.fsf@gitster.mtv.corp.google.com>
On 20/04/16 19:53, Junio C Hamano wrote:
Show 47 quoted lines
> Elia Pinto <gitter.spiros@gmail.com> writes:
> 
>> Implements the GIT_TRACE_CURL environment variable to allow a
> 
> s/Implements/Implement/; speak as if you are giving an order to the
> codebase to "be like so".
> 
>> greater degree of detail of GIT_CURL_VERBOSE, in particular
>> the complete transport header and all the data payload exchanged.
>> It might be useful if a particular situation could require a more
>> thorough debugging analysis.
>>
>> Helped-by: Torsten Bögershausen <tboegi@web.de>
>> Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
>> Helped-by: Junio C Hamano <gitster@pobox.com>
>> Helped-by: Eric Sunshine <sunshine@sunshineco.com>
>> Helped-by: Jeff King <peff@peff.net>
>> Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
>> ---
>>  http.c | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
>>  http.h |   6 ++++
>>  2 files changed, 106 insertions(+), 1 deletion(-)
>>
>> diff --git a/http.c b/http.c
>> index 4304b80..507c386 100644
>> --- a/http.c
>> +++ b/http.c
>> @@ -11,6 +11,7 @@
>>  #include "gettext.h"
>>  #include "transport.h"
>>  
>> +static struct trace_key trace_curl = TRACE_KEY_INIT(CURL);
>>  #if LIBCURL_VERSION_NUM >= 0x070a08
>>  long int git_curl_ipresolve = CURL_IPRESOLVE_WHATEVER;
>>  #else
>> @@ -464,6 +465,100 @@ static void set_curl_keepalive(CURL *c)
>>  }
>>  #endif
>>  
>> +
> 
> No need for this extra blank line.
> 
>> +void curl_dump(const char *text, unsigned char *ptr, size_t size, char nohex)
>> +{
>> +	size_t i;
>> +	size_t w;

As I said in a previous email, curl_dump() should be marked static here (and remove the declaration from http.h). Unless, of course, there are plans for future use/calls being added?

ATB, Ramsay Jones

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 10 in “[PATCHv3 0/3] Implements the GIT_TRACE_CURL environment variable”
  1. Elia PintoApr 20, 2016
  2. 1/3 git.txt: document the new GIT_TRACE_CURL environment variableElia Pinto, Apr 20, 2016
  3. 2/3 imap-send.c: introduce the GIT_TRACE_CURL enviroment variableElia Pinto, Apr 20, 2016
  4. 3/3 http.c: implements the GIT_TRACE_CURL environment variableElia Pinto, Apr 20, 2016
  5. Junio C HamanoApr 20, 2016
  6. Ramsay JonesApr 20, 2016
  7. Junio C HamanoApr 20, 2016
  8. Junio C HamanoApr 20, 2016
  9. Ramsay JonesApr 20, 2016
  10. Jeff KingApr 20, 2016

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.