Re: [PATCH v6 1/2] http.c: implement the GIT_TRACE_CURL environment variable

2016-05-25 Thread Jeff King
On Fri, May 20, 2016 at 01:39:06PM -0700, Junio C Hamano wrote: > > +{ > > + size_t i; > > + struct strbuf out = STRBUF_INIT; > > + unsigned int width = 80; > > In a few places Git limits the width of the output, like using function > name in hunk header lines and drawing diffstat in "diff

Re: [PATCH v6 1/2] http.c: implement the GIT_TRACE_CURL environment variable

2016-05-20 Thread Junio C Hamano
Elia Pinto writes: > diff --git a/http.c b/http.c > index df6dd01..ba32bac 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 in

[PATCH v6 1/2] http.c: implement the GIT_TRACE_CURL environment variable

2016-05-20 Thread Elia Pinto
Implement the GIT_TRACE_CURL environment variable to allow a 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. Document the new