1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-09 12:36:08 +02:00
git/trace2
Glen Choo dc90208497 trace2: plumb config kvi
There is a code path starting from trace2_def_param_fl() that eventually
calls current_config_scope(), and thus it needs to have "kvi" plumbed
through it. Additional plumbing is also needed to get "kvi" to
trace2_def_param_fl(), which gets called by two code paths:

- Through tr2_cfg_cb(), which is a config callback, so it trivially
  receives "kvi" via the "struct config_context ctx" parameter.

- Through tr2_list_env_vars_fl(), which is a high level function that
  lists environment variables for tracing. This has been secretly
  behaving like git_config_from_parameters() (in that it parses config
  from environment variables/the CLI), but does not set config source
  information.

  Teach tr2_list_env_vars_fl() to be well-behaved by using
  kvi_from_param(), which is used elsewhere for CLI/environment
  variable-based config.

As a result, current_config_scope() has no more callers, so remove it.

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-06-28 14:06:39 -07:00
..
tr2_cfg.c trace2: plumb config kvi 2023-06-28 14:06:39 -07:00
tr2_cfg.h trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_cmd_name.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_cmd_name.h
tr2_ctr.c treewide: remove unnecessary cache.h includes in source files 2023-02-23 17:25:28 -08:00
tr2_ctr.h trace2: add global counter mechanism 2022-10-24 12:45:26 -07:00
tr2_dst.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_dst.h trace2: write discard message to sentinel files 2019-10-05 17:53:51 +09:00
tr2_sid.c treewide: remove unnecessary includes of cache.h 2023-03-21 10:56:53 -07:00
tr2_sid.h
tr2_sysenv.c config: add ctx arg to config_fn_t 2023-06-28 14:06:39 -07:00
tr2_sysenv.h trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_tbuf.c treewide: remove unnecessary cache.h includes in source files 2023-02-23 17:25:28 -08:00
tr2_tbuf.h
tr2_tgt.h trace2: plumb config kvi 2023-06-28 14:06:39 -07:00
tr2_tgt_event.c trace2: plumb config kvi 2023-06-28 14:06:39 -07:00
tr2_tgt_normal.c trace2: plumb config kvi 2023-06-28 14:06:39 -07:00
tr2_tgt_perf.c trace2: plumb config kvi 2023-06-28 14:06:39 -07:00
tr2_tls.c alloc.h: move ALLOC_GROW() functions from cache.h 2023-02-23 17:25:28 -08:00
tr2_tls.h trace2: add global counter mechanism 2022-10-24 12:45:26 -07:00
tr2_tmr.c treewide: remove unnecessary cache.h includes in source files 2023-02-23 17:25:28 -08:00
tr2_tmr.h trace2: add stopwatch timers 2022-10-24 12:45:26 -07:00