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

Re: [PATCH 1/2] imap-send.c: implements the GIT_CURL_DEBUG environment variable

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 4, 2016, 16:50 UTC
Message-ID
<xmqqr3el5nen.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CA+EOSBkY-Tsz3ZAfK3uAXJsrE585cOhyxjsU4FhgDMFC-ypkUg@mail.gmail.com>
Elia Pinto <gitter.spiros@gmail.com> writes:
Show 7 quoted lines
>> My impression is that using GIT_TRACE_* is the more mainstream
>> trend, and it may be beneficial to work any new debugging aid like
>> this one to fit within that mechanism.
>
> I thought about it, and I agree with you. The idea could be
>
> - Call the variable GIT_TRACE_CURL_DEBUG instead

I think GIT_TRACE_CURL_DEBUG is overly verbose; tracing by definition is a debugging aid.

> - Add the new GIT_TRACE_CURL_VERBOSE variable, keeping
> GIT_CURL_VERBOSE for compatibility
I do not care too deeply either way.
 - GIT_CURL_VERBOSE can stay the same as-is and show its output to
   whatever output channel it spits things out.
 - Or it can be a synonym for GIT_TRACE_CURL=2 (as I understand that
   the VERBOSE output goes to the standard error stream)

If you want tracing as debugging aid and existing CURL_VERBOSE orthogonal, it would probably make more sense to go the former route, not linking this new "DEBUG" thing with the existing "VERBOSE" thing.

> - Documenting these GIT_TRACE_CURL_XXX variables (GIT_CURL_VERBOSE
> it is not even documented i think)
If we decide to leave them untangled, this is not necessary.
> - perhaps use the git trace api in doing these new patches
>
> Look reasonable? It seems reasonable? I'd like your own opinion
Not really sensible as long as you have that "perhaps" in the list.

Something that does not use the trace API shouldn't pretend to by using GIT_TRACE_* names.

GIT_TRACE_CURL could be your new thing and would decide where to show its output by using the GIT_TRACE_* api.

Previous: Elia PintoNext: Eric Sunshine
Message 10 of 14 in “imap-send.c: implements the GIT_CURL_DEBUG environment variable”
  1. 1/2 imap-send.c: implements the GIT_CURL_DEBUG environment variableElia Pinto, Apr 1, 2016
  2. 2/2 http.c: implements the GIT_CURL_DEBUG environment variableElia Pinto, Apr 1, 2016
  3. Ramsay JonesApr 1, 2016
  4. Elia PintoApr 4, 2016
  5. Torsten BögershausenApr 1, 2016
  6. Ramsay JonesApr 1, 2016
  7. Elia PintoApr 4, 2016
  8. Junio C HamanoApr 1, 2016
  9. Elia PintoApr 4, 2016
  10. Junio C HamanoApr 4, 2016
  11. Eric SunshineApr 1, 2016
  12. Elia PintoApr 5, 2016
  13. Eric SunshineApr 6, 2016
  14. Jeff KingApr 6, 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.