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

Re: [PATCH] RFC: refs: add GIT_DEBUG_REFS debugging mechanism

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Sep 2, 2020, 17:49 UTC
Message-ID
<20200902174939.3391882-1-jonathantanmy@google.com>
In-Reply-To
<pull.713.git.1598628529512.gitgitgadget@gmail.com>
> This should be integrated with the trace2 sub-system, and I would appreciate
> pointers on how to start.

The trace2 subsystem seems to be designed to detect errors coarsely (e.g. by looking at process invocations) and log timings. It currently doesn't seem to be made for this kind of fine debugging information - and perhaps this is by design, because such logging information would not be useful to most users and would just clutter up the logs.

But I think there is a place for this in Git - in particular, we have packet tracing (GIT_TRACE_PACKET), and this has been useful both in automated tests (t/????-*.sh) and in manual tests. Ref backend tracing seems to be similar. But this would be best if we had an additional option that could control whether ref backend tracing was on or off, independent from other things like the trace2 target.

Is the plan to migrate all usages of "trace" to "trace2" or for both to exist simultaneously? If the latter, then ref backend tracing could just use "trace", but if the former, we'd have to designing this additional option.

Previous: Han-Wen Nienhuys via GitGitGadgetNext: Jonathan Nieder
Message 2 of 10 in “RFC: refs: add GIT_DEBUG_REFS debugging mechanism”
  1. RFC: refs: add GIT_DEBUG_REFS debugging mechanismHan-Wen Nienhuys via GitGitGadget, Aug 28, 2020
  2. Jonathan TanSep 2, 2020
  3. Jonathan NiederSep 3, 2020
  4. Jeff KingSep 3, 2020
  5. refs: add GIT_TRACE_REFS debugging mechanismHan-Wen Nienhuys via GitGitGadget, Sep 7, 2020
  6. Junio C HamanoSep 8, 2020
  7. Han-Wen NienhuysSep 9, 2020
  8. refs: add GIT_TRACE_REFS debugging mechanismHan-Wen Nienhuys via GitGitGadget, Sep 9, 2020
  9. refs: add GIT_TRACE_REFS debugging mechanismHan-Wen Nienhuys via GitGitGadget, Sep 16, 2020
  10. Fwd: [PATCH] RFC: refs: add GIT_DEBUG_REFS debugging mechanismHan-Wen Nienhuys, Sep 3, 2020

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.