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

Re: [PATCH] trace2: teach Git to log environment variables

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
Mar 23, 2020, 15:28 UTC
Message-ID
<aa4d22be-3710-1377-97aa-8ce8cfde0e20@jeffhostetler.com>
In-Reply-To
<0f5607a4242cc7b61ad36d0782c9d1250c4d4d7d.1584737973.git.steadmon@google.com>
On 3/20/20 5:06 PM, Josh Steadmon wrote:
Show 17 quoted lines
> Via trace2, Git can already log interesting config parameters (see the
> trace2_cmd_list_config() function). However, this can grant an
> incomplete picture because many config parameters also allow overrides
> via environment variables.
>
> To allow for more complete logs, we add a new trace2_cmd_list_env_vars()
> function and supporting implementation, modeled after the pre-existing
> config param logging implementation.
>
> Signed-off-by: Josh Steadmon <steadmon@google.com>
> ---
> As I mentioned in the commit message, I modeled this pretty closely on
> the config parameter reporting code. It may make sense to split some of
> this out into its own file, particularly the parts in trace2/tr2_cfg.c.
> Alternatively, we could also just make the env var reporting part of the
> config param reporting. Let me know if you have a preference either way.
>
Looks good to me.
Jeff
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “trace2: teach Git to log environment variables”
  1. trace2: teach Git to log environment variablesJosh Steadmon, Mar 20, 2020
  2. Junio C HamanoMar 20, 2020
  3. Jeff HostetlerMar 23, 2020
  4. Junio C HamanoMar 23, 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.